/* Telas de acesso do afiliado: login, cadastro, esqueci a senha e redefinir senha.
   Layout em coluna de altura total: banner, cartão central e rodapé sempre no fim da página. */

:root {
    --au-bg: #0b0b0c;
    --au-card: #15161a;
    --au-borda: #2a2b31;
    --au-texto: #f2f2f4;
    --au-suave: #9a9ba3;
    --au-vermelho: #c62828;
    --au-vermelho-escuro: #a31f1f;
    --au-dourado: #d4af37;
}

* { box-sizing: border-box; }

html, body.auth-page {
    margin: 0;
    min-height: 100%;
}

body.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--au-bg);
    color: var(--au-texto);
    font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

.auth-banner {
    position: relative;
    display: block;
}
.auth-banner img {
    display: block;
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}
/* degradê para o banner "afundar" no fundo preto, sem corte seco */
.auth-banner::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 45%;
    background: linear-gradient(to bottom, rgba(11,11,12,0), var(--au-bg));
}

.auth-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 16px 48px;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    margin-top: -48px;
    background: var(--au-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.55);
}
.auth-card.largo { max-width: 520px; }

.auth-card h1 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.auth-sub {
    margin: 0 0 22px;
    color: var(--au-suave);
    font-size: 14px;
    line-height: 1.5;
}
.auth-secao {
    margin: 22px 0 12px;
    padding-top: 16px;
    border-top: 1px solid var(--au-borda);
    color: var(--au-dourado);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.auth-campo { margin-bottom: 14px; }
.auth-campo label {
    display: block;
    margin-bottom: 6px;
    color: #c9cad0;
    font-size: 13px;
    font-weight: 600;
}
.auth-campo input[type="text"],
.auth-campo input[type="email"],
.auth-campo input[type="password"],
.auth-campo input[type="tel"] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    background: #0f1013;
    border: 1px solid var(--au-borda);
    border-radius: 10px;
    color: var(--au-texto);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-campo input::placeholder { color: #5f6068; }
.auth-campo input:focus {
    border-color: var(--au-vermelho);
    box-shadow: 0 0 0 3px rgba(198,40,40,0.18);
}
.auth-campo small {
    display: block;
    margin-top: 5px;
    color: var(--au-suave);
    font-size: 12px;
}
.auth-dupla { display: flex; gap: 12px; }
.auth-dupla .auth-campo { flex: 1; min-width: 0; }

.auth-senha { position: relative; }
.auth-senha input { padding-right: 72px !important; }
.auth-ver {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: var(--au-suave);
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    padding: 8px;
}
.auth-ver:hover { color: var(--au-texto); }

.auth-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 6px 0 18px;
    color: var(--au-suave);
    font-size: 13px;
    line-height: 1.4;
}
.auth-check input { margin-top: 2px; accent-color: var(--au-vermelho); width: 16px; height: 16px; flex: none; }

.auth-btn {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 10px;
    background: var(--au-vermelho);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(198,40,40,0.3);
    transition: background .15s ease, transform .05s ease;
}
.auth-btn:hover { background: var(--au-vermelho-escuro); }
.auth-btn:active { transform: translateY(1px); }

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    font-size: 14px;
}
.auth-links.centro { justify-content: center; }
.auth-links a { color: #d8d8dc; text-decoration: none; }
.auth-links a:hover { color: #fff; text-decoration: underline; }
.auth-links a.destaque { color: #ff6b6b; font-weight: 700; }

.auth-alerta {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}
.auth-alerta.erro { background: rgba(198,40,40,0.12); border: 1px solid rgba(198,40,40,0.45); color: #ffb4b4; }
.auth-alerta.ok { background: rgba(46,160,67,0.12); border: 1px solid rgba(46,160,67,0.45); color: #a8e6b4; }

/* rodapé: sempre no fim da página, mesmo com pouco conteúdo */
.auth-rodape {
    padding: 18px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    color: #6f7078;
    font-size: 12.5px;
    line-height: 1.6;
}
.auth-rodape .copy, .auth-rodape .copy p { margin: 0; padding: 0; background: none; box-shadow: none; color: inherit; font-size: inherit; }
.auth-rodape a { color: var(--au-suave); }

@media (max-width: 420px) {
    .auth-card { padding: 24px 18px; margin-top: -32px; }
    .auth-dupla { flex-direction: column; gap: 0; }
}
