/*
 * vps/app.arenacam/public/assets/css/auth.css
 *
 * Sistema visual compartilhado pelas telas de autenticação (login, cadastro,
 * esqueci/redefinir senha) — mesma paleta/fonte/componentes já validados em
 * produção em vps/web_app/arenas.php (Poppins, fundo #031020, botões
 * vermelhos em pílula). Cada view carrega este arquivo + seu próprio CSS
 * (só o que for específico daquela tela).
 *
 * Cor branca fica escopada em .auth-shell, nunca em body/html — o rodapé de
 * cookies (cookie-banner.php) e outros componentes compartilhados não podem
 * herdar isso (mesmo bug já visto e corrigido em arenas.php).
 */

.auth-shell {
    font-family: 'Poppins', system-ui, sans-serif;
    background: #031020;
    color: #fff;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    position: relative;
    overflow: hidden;
}

.auth-shell a {
    text-decoration: none;
}

/* ── RABISCO VERMELHO DA MARCA (desktop) ── */
.auth-hero-decor {
    position: absolute;
    top: -110px;
    right: -130px;
    width: 480px;
    max-width: 45%;
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 991px) {
    .auth-hero-decor {
        display: none;
    }
}

/* ── PAINEL DE MARKETING (desktop only) ── */
.auth-brand {
    position: relative;
    z-index: 1;
    flex: 1 1 55%;
    display: flex;
    align-items: center;
    padding: 40px 60px;
}

.auth-brand-content {
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.auth-brand-logo {
    height: 52px;
    width: auto;
}

.auth-brand-headline {
    font-weight: 200;
    font-size: clamp(1.6rem, 2.6vw, 2.5rem);
    line-height: 1.2;
    color: #fff;
    margin: 0;
}

.auth-brand-headline strong {
    font-weight: 500;
}

.auth-brand-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-brand-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, #04172f, #0e2b4d);
    border-radius: 16px;
    padding: 14px;
}

.auth-brand-card .icon-box {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-brand-card .icon-box img {
    width: 26px;
    height: 26px;
}

.auth-brand-card p {
    margin: 0;
    font-size: 0.82rem;
    color: #7289a3;
    line-height: 1.5;
}

.auth-brand-card p strong {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 991px) {
    .auth-brand {
        display: none;
    }
}

/* ── ÁREA DO FORMULÁRIO ── */
.auth-area {
    position: relative;
    z-index: 1;
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

@media (max-width: 991px) {
    .auth-area {
        flex: 1 1 100%;
    }
}

.auth-card {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-card h1 {
    font-weight: 500;
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
}

.auth-card .auth-subtext {
    color: #7289a3;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: -12px;
}

/* ── CAMPOS (pílula branca) ── */
.auth-field {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-field img.field-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.auth-field input {
    border: none;
    outline: none;
    flex: 1 1 auto;
    font-family: inherit;
    font-size: 0.85rem;
    color: #0d1b2a;
    background: transparent;
    min-width: 0;
}

.auth-field input::placeholder {
    color: #455970;
}

.auth-field .toggle-password {
    cursor: pointer;
    color: #455970;
    font-size: 1.1rem;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.auth-field-error {
    color: #ff8080;
    font-size: 0.75rem;
    margin: -12px 0 0 4px;
}

.auth-field-hint {
    color: #7289a3;
    font-size: 0.72rem;
    margin: -12px 0 0 4px;
    line-height: 1.5;
}

/* ── LINHA LEMBRAR / ESQUECI SENHA ── */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
}

.auth-row .auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.auth-row .auth-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    accent-color: #d40003;
}

.auth-row a {
    color: #3ac4ff;
}

/* ── BOTÕES ── */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 14px 20px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-btn-primary {
    background: #d40003;
    color: #fff;
    box-shadow: 0 4px 18px rgba(212, 0, 3, 0.35);
}

.auth-btn-primary:hover {
    background: #b80003;
    color: #fff;
    transform: translateY(-2px);
}

.auth-btn-secondary {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.auth-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.auth-btn-google {
    background: #fff;
    color: #7289a3;
    font-weight: 600;
}

.auth-btn-google img {
    width: 16px;
    height: 16px;
}

.auth-btn-google:hover {
    color: #455970;
}

.auth-btn-link {
    background: transparent;
    color: #3ac4ff;
}

.auth-btn-link:hover {
    color: #6ed4ff;
}

.auth-btn-success {
    background: #2ba84a;
    color: #fff;
    box-shadow: 0 4px 18px rgba(43, 168, 74, 0.35);
}

.auth-btn-success:hover {
    background: #2ba84a;
    color: #fff;
    transform: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #455970;
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: rgba(255, 255, 255, 0.15);
}

/* ── LINKS DE APOIO ── */
.auth-footlink {
    text-align: center;
    font-size: 0.78rem;
    color: #fff;
}

.auth-footlink a {
    color: #3ac4ff;
    font-weight: 600;
}

.auth-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.72rem;
    color: #7289a3;
    flex-wrap: wrap;
}

.auth-legal a {
    color: #7289a3;
    font-weight: 600;
}

.auth-legal a:hover {
    color: #fff;
}

.auth-legal .sep {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
}

/* ── MEDIDOR DE FORÇA DE SENHA (cadastro/redefinição) ── */
.auth-pwd-meter-track {
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    margin: -12px 0 0 4px;
}

.auth-pwd-meter-fill {
    height: 100%;
    width: 0;
    transition: width 0.2s ease, background 0.2s ease;
}

.auth-pwd-meter-fill.fraca {
    background: #d40003;
}

.auth-pwd-meter-fill.media {
    background: #ffc107;
}

.auth-pwd-meter-fill.forte {
    background: #2ba84a;
}

.auth-pwd-meter-label {
    font-size: 0.72rem;
    margin: 0 0 0 4px;
}

.auth-pwd-meter-label.fraca {
    color: #ff8080;
}

.auth-pwd-meter-label.media {
    color: #ffd873;
}

.auth-pwd-meter-label.forte {
    color: #7be2a0;
}

/* ── CHECKBOX MULTILINHA (termos/privacidade) ── */
.auth-check-block {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #fff;
}

.auth-check-block input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    accent-color: #d40003;
    margin-top: 2px;
    flex: 0 0 auto;
}

.auth-check-block a {
    color: #3ac4ff;
}

/* ── ALERTAS (banner único de erro/sucesso) ── */
.auth-alert {
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 0.82rem;
    line-height: 1.5;
    text-align: center;
}

.auth-alert-danger {
    background: rgba(212, 0, 3, 0.15);
    border: 1px solid rgba(212, 0, 3, 0.4);
    color: #ff9d9d;
}

.auth-alert-success {
    background: rgba(43, 168, 74, 0.15);
    border: 1px solid rgba(43, 168, 74, 0.4);
    color: #7be2a0;
}

.auth-alert-warning {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.35);
    color: #ffd873;
}

.auth-alert-warning form {
    margin-top: 10px;
}

.auth-alert-warning .btn {
    border-radius: 999px;
    font-size: 0.78rem;
}
