/* FUNDO GLOBAL */
html,
body {
    width: 100%;
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    /* Fundo com o padrão JuninoPro ocupando a tela toda */
    background: url("../img/FundoJuninoProH.png") center center / cover no-repeat fixed;
}

/* CARD LOGIN */
.login-card {
    background: rgba(10, 25, 47, 0.4);
    /* Ajustado para combinar com o tema escuro do projeto */
    padding: 2.5rem 2rem;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    color: #e1e4ed;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* LOGO */
.logo-topo {
    height: 50px;
    filter: none;
}

/* MODAL */
.modal-dark {
    background-color: #0a192f;
    /* Consistente com base.css --bg-dark-primary */
    color: #fff;
    border-radius: 15px;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* INPUTS */
.form-control,
.form-select {
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
    border-color: #ffc107 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.input-group-text {
    border-radius: 8px 0 0 8px;
    background-color: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.input-group .form-control {
    border-radius: 0 8px 8px 0;
}

/* BOTOES */
.btn-warning {
    background-color: #ffc107 !important;
    border: none !important;
    color: #000 !important;
    transition: all 0.3s ease;
}

.btn-warning:hover:not(:disabled) {
    background-color: #ffca2c !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.btn-warning:disabled {
    background-color: #6c757d !important;
    opacity: 0.6;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* REGRAS DE SENHA */
.password-rules {
    padding: 0;
}

.password-rules li {
    font-size: 0.85rem;
}

.password-rules i {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.text-success i {
    color: #198754 !important;
}

.text-danger i {
    color: #dc3545 !important;
}

/* FEEDBACK */
#registerMessage,
#forgotMessage,
#message {
    min-height: 20px;
    font-weight: 500;
}

/* SPINNER */
.spinner-border {
    display: none;
}

/* DIVIDER */
.divider hr {
    opacity: 0.3;
}

.divider span {
    color: #ffffff !important;
    font-weight: 500;
}

/* MODAL FOOTER */
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.modal-footer .footer-logo {
    margin-right: auto;
    height: 35px;
}