/*
 * Login e recuperação de senha (prefixo auth-).
 * Botões, campos, foco, rótulos e alertas vêm da camada global (theme-overrides.css):
 * aqui só o layout da página e a tipografia do painel.
 */

body.auth-page {
    margin: 0;
    background: #fff;
}

.auth {
    --accent: #3b6fe0;
    --border: #e7ecf1;
    --text: #3f444a;
    --text-2: #4b5565;
    --muted: #5f6b7c;

    display: flex;
    min-height: 100vh;
    background: #fff;
    color: var(--text);
    font-family: "Open Sans", sans-serif;
}

/* Painel do formulário */
.auth__panel {
    flex: 0 0 520px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 40px 56px 24px;
}

.auth__main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth__box {
    width: 100%;
    max-width: 360px;
}

.auth__logo {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 36px;
}

.auth__title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    text-align: center;
}

.auth__subtitle {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-2);
    text-align: center;
}

.auth .form-group {
    margin-bottom: 16px;
}

.auth .form-control {
    height: 40px;
    font-size: 14px;
}

/* Link secundário logo abaixo do campo (ex.: "Esqueceu a senha?") */
.auth__link {
    display: table;
    margin: 8px 0 0 auto;
    font-size: 13px;
}

.auth__submit {
    height: 40px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
}

.auth__back {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    text-align: center;
}

.auth__back .fa {
    margin-right: 4px;
}

.auth__alert,
.auth__notice .alert {
    margin-bottom: 16px;
    font-size: 13px;
}

.auth__notice .alert p:last-child {
    margin-bottom: 0;
}

/* Rodapé */
.auth__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 24px;
    font-size: 12px;
    color: var(--muted);
}

.auth__seal {
    display: block;
    width: 140px;
    height: auto;
}

/* Fotos da marca: alternam com fade (login.js); a 1ª vem no CSS, as demais o JS carrega depois da página */
.auth__media {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    background: #2b3643;
}

.auth__slide {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.auth__slide.is-active {
    opacity: 1;
}

.auth__slide--first {
    background-image: url("../../images/pages/login/bg1.jpeg");
}

@media (prefers-reduced-motion: reduce) {
    .auth__slide {
        transition: none;
    }
}

.auth__media::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(20, 32, 58, 0) 50%, rgba(20, 32, 58, .7) 100%);
}

.auth__tagline {
    position: absolute;
    right: 48px;
    bottom: 40px;
    left: 48px;
    z-index: 1;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

/* < 992px: só o formulário */
@media (max-width: 991px) {
    .auth__panel {
        flex: 1 1 auto;
        padding: 32px 16px 24px;
    }

    .auth__media {
        display: none;
    }

    .auth__logo {
        margin-bottom: 32px;
    }
}
