/* ==========================================================================
   Tela de login (/login) - restyle escopado sob .auth
   Nao afeta as demais telas: este arquivo so e carregado em /login.
   Identidade: azul do logo #69bed5 (marca) | #1c6b7e (cheios/links) | navy #0b1f45
   ========================================================================== */

.auth,
.auth *,
.auth *::before,
.auth *::after { box-sizing: border-box; }

.auth {
    --auth-navy: #0b1f45;
    --auth-blue: #69bed5;
    --auth-blue-strong: #3fa1bd;
    --auth-blue-ink: #1c6b7e;
    --auth-ink: #10203a;
    --auth-muted: #6b7791;
    --auth-border: #dfe4ee;

    position: fixed;
    inset: 0;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    background: linear-gradient(135deg, #0b1f45 0%, #12305f 50%, #69bed5 100%);
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.auth__card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px -12px rgba(11, 31, 69, .4);
    padding: 2.75rem 2.5rem 2.25rem;
    animation: auth-in .5s ease both;
}

@keyframes auth-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth__brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth__logo {
    width: 170px;
    height: auto;
}

.auth__title {
    margin: 0;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--auth-ink);
}

.auth__subtitle {
    margin: .35rem 0 1.75rem;
    text-align: center;
    font-size: .9rem;
    color: var(--auth-muted);
}

/* --- Campos: achata o pill do form-control-user do SB Admin 2 --- */
.auth .form-group {
    margin-bottom: 1rem;
}

.auth .form-control,
.auth .form-control-user {
    display: block;
    width: 100%;
    height: auto;
    padding: .85rem 1rem;
    font-size: .95rem;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    color: var(--auth-ink);
    background-color: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.auth .password-field > .form-control {
    padding-right: 2.75rem;
}

.auth .form-control::placeholder {
    color: #9aa4b8;
}

.auth .form-control:focus,
.auth .form-control-user:focus {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 3px rgba(105, 190, 213, .35);
    outline: 0;
}

.auth .password-field > .toggle-password {
    color: var(--auth-muted);
}

.auth .password-field > .toggle-password:hover,
.auth .password-field > .toggle-password:focus {
    color: var(--auth-navy);
}

/* --- Botao principal --- */
.auth .btn-primary,
.auth .btn-primary.btn-user {
    display: block;
    width: 100%;
    margin-top: .5rem;
    padding: .8rem 1rem;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .01em;
    text-align: center;
    text-decoration: none;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--auth-navy) 0%, var(--auth-blue-ink) 100%);
    box-shadow: 0 10px 22px -8px rgba(28, 107, 126, .5);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.auth .btn-primary:hover,
.auth .btn-primary:focus {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -8px rgba(28, 107, 126, .6);
}

.auth .btn-primary:active {
    transform: translateY(0);
}

/* --- Links auxiliares --- */
.auth__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eef2f2;
}

.auth__links a {
    font-size: .85rem;
    color: var(--auth-muted);
    text-decoration: none;
    transition: color .12s ease;
}

.auth__links a:hover {
    color: var(--auth-blue-ink);
}

@media (max-width: 480px) {
    .auth {
        padding: 1.5rem 1rem;
    }
    .auth__card {
        padding: 2rem 1.5rem 1.75rem;
    }
}
