﻿/* Telas de autenticação (login, esqueci minha senha, redefinir senha) - shell centralizado
   compartilhado por Views/Entrada/Index.cshtml e Views/Account/*Password*.cshtml, usando os
   tokens de Variaveis.css pra ficar consistente com o resto do sistema. */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--fundo);
    padding: 48px 16px;
    font-family: var(--fonte-corpo);
    box-sizing: border-box;
}

.auth-shell {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

/* Era um quadrado var(--tinta) com "WGT" em texto (placeholder antes de existir logo de verdade)
   - agora é a logo (logo_unico.png) direto, sem fundo/moldura: a imagem já vem com o próprio
   fundo claro, uma caixa escura atrás ficaria estranha atrás dela. */
.auth-logo {
    display: inline-block;
    height: 96px;
    width: auto;
    margin-bottom: 24px;
}

.auth-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--tinta);
    margin: 0 0 8px;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--texto-muted);
    margin: 0 0 32px;
}

.auth-card {
    background-color: var(--papel);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .06);
    padding: 32px;
    text-align: left;
    box-sizing: border-box;
}

.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    display: block;
    font-weight: 600;
    color: var(--tinta);
    font-size: 14px;
    margin-bottom: 8px;
}

.auth-field input.form-control {
    width: 100%;
    height: 44px;
    border: 1px solid var(--linha-forte);
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14px;
    color: var(--tinta);
    box-sizing: border-box;
}

.auth-field input.form-control::placeholder {
    color: var(--cinza-claro);
}

.auth-link-forgot {
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    color: var(--tinta);
    margin-bottom: 20px;
    text-decoration: none;
}

    .auth-link-forgot:hover {
        text-decoration: underline;
        color: var(--tinta);
    }

.btn-auth-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    background-color: var(--tinta);
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

    .btn-auth-primary:hover {
        background-color: var(--latao-escuro);
        color: #fff !important;
    }

    .btn-auth-primary:disabled {
        opacity: .7;
        cursor: not-allowed;
    }

/* Spinner do botão de login - some/aparece via a classe "ativo" (ver script em
   Entrada/Index.cshtml). Antes o botão só trocava o texto pra "Entrando...", sem nenhum
   indicador visual de carregamento - parecia que o clique não tinha "pego". Próprio (não reusa
   .spinner-erp de EstilosCadastros.css) porque essa tela carrega só EstilosAuth.css
   (_LayoutAuth.cshtml). */
.spinner-btn-auth {
    display: none;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: girar-spinner-btn-auth .7s linear infinite;
    flex-shrink: 0;
}

    .spinner-btn-auth.ativo {
        display: inline-block;
    }

@keyframes girar-spinner-btn-auth {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .spinner-btn-auth {
        animation-duration: 2s;
    }
}

.auth-alert-erro,
.validation-summary-errors {
    background-color: #fbe1e3;
    color: var(--linha-vermelha);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 20px;
}

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 18px;
    }

.auth-texto {
    color: var(--tinta);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 24px;
}

.auth-back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--texto-muted);
    text-decoration: none;
}

    .auth-back-link:hover {
        color: var(--tinta);
        text-decoration: underline;
    }
