/* =========================
   PALETA (convertida de TColor)
   -------------------------
   BackColorTop:    $005D1632 -> #32165D
   BackColorBottom: $0033201D -> #1D2033
   ItemBackColor:   $003D2626 -> #26263D
   ItemHover:       $0050272E -> #2E2750
   ItemBorder:      $00661E3B -> #3B1E66
   TextSecondary:   $00C3BEBE -> #BEBEC3
   Acento primário: $00FF2B8E -> #8E2BFF
   Cinza neutro:    $00B0B0B0 -> #B0B0B0
   ========================= */

/* RESET BÁSICO */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #32165D 0%, #1D2033 45%, #12131F 100%);
    color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

/* =========================
   HEADER
   ========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: rgba(11, 10, 20, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(59, 30, 102, 0.6); /* #3B1E66 */
}

.site-header-left,
.site-header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 18px;
    color: #FFFFFF;
    text-shadow: 0 0 18px rgba(142, 43, 255, 0.8);
}

.site-header-nav {
    display: flex;
    gap: 18px;
}

.site-header-nav a {
    font-size: 13px;
    color: #BEBEC3;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.site-header-nav a:hover {
    color: #FFFFFF;
    border-color: #8E2BFF;
    transform: translateY(-1px);
}

.header-cta {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    background: linear-gradient(135deg, #8E2BFF, #3B1E66);
    box-shadow:
        0 0 18px rgba(142, 43, 255, 0.55),
        0 0 1px rgba(255, 255, 255, 0.08);
    text-decoration: none;
    border: none;
    outline: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.header-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        0 0 26px rgba(142, 43, 255, 0.75),
        0 0 1px rgba(255, 255, 255, 0.16);
}

/* =========================
   LAYOUT PRINCIPAL
   ========================= */

.site-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 16px;
}

/* Wrapper para centralizar o card */
.auth-wrapper {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

/* =========================
   CARD DE AUTENTICAÇÃO
   ========================= */

.auth-box {
    width: 100%;
    max-width: 420px;
    background: radial-gradient(circle at top left, rgba(142, 43, 255, 0.10), transparent 55%),
                radial-gradient(circle at bottom right, rgba(50, 22, 93, 0.30), transparent 60%),
                #26263D; /* ItemBackColor */
    border-radius: 18px;
    padding: 28px 28px 24px;
    border: 1px solid rgba(59, 30, 102, 0.85); /* ItemBorder */
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
}

/* Versão de registro pode ficar um pouco maior */
.auth-box-register {
    max-width: 480px;
}

/* TÍTULOS / TEXTOS */
.auth-title {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
}

.auth-subtitle {
    font-size: 13px;
    color: #BEBEC3;
    text-align: center;
    margin-bottom: 20px;
}

/* ALERTAS */
.auth-alert {
    font-size: 13px;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.auth-alert-error {
    background: rgba(199, 71, 71, 0.12);
    border-color: rgba(199, 71, 71, 0.6);
    color: #FFD5D5;
}

.auth-alert-success {
    background: rgba(64, 179, 112, 0.12);
    border-color: rgba(64, 179, 112, 0.6);
    color: #D3FFE6;
}

/* =========================
   FORMULÁRIO
   ========================= */

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.input-group label {
    font-size: 13px;
    color: #BEBEC3;
}

.input-group input {
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(59, 30, 102, 0.9);
    background: #24273B; /* ItemBackHover próximo */
    color: #FFFFFF;
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease,
        transform 0.12s ease;
}

.input-group input::placeholder {
    color: #8282AA;
}

.input-group input:focus {
    border-color: #8E2BFF;
    background: #26263D;
    box-shadow: 0 0 0 1px rgba(142, 43, 255, 0.7), 0 0 20px rgba(142, 43, 255, 0.35);
    transform: translateY(-1px);
}

/* Linha "lembrar-me" e link */
.remember-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0 18px;
    font-size: 12px;
    color: #BEBEC3;
    gap: 8px;
}

.remember-line label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.remember-line input[type="checkbox"] {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid rgba(59, 30, 102, 0.9);
    background: #24273B;
    accent-color: #8E2BFF;
}

.forgot {
    color: #B0B0B0;
    text-decoration: none;
    transition: color 0.18s ease;
}

.forgot:hover {
    color: #FFFFFF;
}

/* Linha de termos na tela de registro */
.remember-line-register {
    align-items: flex-start;
    font-size: 11px;
    line-height: 1.4;
}

.remember-line-register a {
    color: #BEBEC3;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.remember-line-register a:hover {
    color: #FFFFFF;
}

/* BOTÃO PRINCIPAL */
.auth-btn {
    width: 100%;
    height: 42px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.03em;
    text-transform: none;
    color: #FFFFFF;
    background: linear-gradient(135deg, #8E2BFF, #3B1E66);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.8),
        0 0 26px rgba(142, 43, 255, 0.9);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        filter 0.16s ease,
        background 0.16s ease;
}

.auth-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.9),
        0 0 32px rgba(142, 43, 255, 1);
}

.auth-btn:active {
    transform: translateY(0);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.8),
        0 0 18px rgba(142, 43, 255, 0.8);
}

/* DIVISOR E RODAPÉ DO CARD */
.auth-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(190, 190, 195, 0.35), transparent);
    margin: 18px 0 12px;
}

.auth-footer-text {
    font-size: 12px;
    text-align: center;
    color: #B0B0B0;
}

.auth-footer-text a {
    color: #BEBEC3;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer-text a:hover {
    color: #FFFFFF;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
    border-top: 1px solid rgba(59, 30, 102, 0.7);
    background: rgba(11, 10, 20, 0.96);
    padding: 16px 20px;
    font-size: 11px;
    color: #B0B0B0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

.site-footer a {
    color: #BEBEC3;
    text-decoration: none;
    margin-left: 4px;
}

.site-footer a:hover {
    color: #FFFFFF;
}

/* =========================
   RESPONSIVIDADE
   ========================= */

@media (max-width: 768px) {
    .site-header {
        padding: 0 16px;
        gap: 12px;
    }

    .site-header-nav {
        display: none; /* Login/registro são simples, pode ocultar nav em mobile */
    }

    .site-main {
        padding: 24px 16px;
    }

    .auth-box,
    .auth-box-register {
        padding: 22px 20px 20px;
        border-radius: 16px;
    }

    .auth-title {
        font-size: 22px;
    }

    .site-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .auth-box,
    .auth-box-register {
        max-width: 100%;
    }

    .site-header {
        justify-content: space-between;
    }

    .site-header-left {
        gap: 12px;
    }

    .header-cta {
        padding-inline: 14px;
        font-size: 12px;
    }
}
