/* ==========================================================
   AUTH - Login e Registro
   Visual idêntico ao ctcon_landing/style.css
   ========================================================== */

body.auth-page {
    font-family: "Lato", sans-serif;
    font-size: 14px;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(224, 37, 43, 0.12), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.06), transparent 28%),
        linear-gradient(180deg, #05070c 0%, #0b0d12 38%, #07090d 100%);
    color: #f5f5f5;
}

/* Tipografia */
body.auth-page h1,
body.auth-page h2,
body.auth-page h3,
body.auth-page h4,
body.auth-page h5,
body.auth-page h6,
body.auth-page .navbar-brand,
body.auth-page .nav-link,
body.auth-page .btn {
    font-family: "Staatliches", sans-serif;
    letter-spacing: 0.03em;
}

/* Navbar */
body.auth-page .auth-navbar {
    background: #000;
    padding-bottom: 0;
}

/* Painel lateral esquerdo */
.register-panel {
    background:
        linear-gradient(180deg, rgba(224, 37, 43, 0.12), rgba(224, 37, 43, 0.02)),
        linear-gradient(180deg, #11141b 0%, #0a0c10 100%);
    min-height: 100%;
    padding: 2rem;
    border-radius: 8px 0 0 8px;
}

.register-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: "Lato", sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #d9d2c8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
}

.register-title {
    font-family: "Staatliches", sans-serif;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 0.95;
    margin: 1rem 0 1rem;
    letter-spacing: 0.04em;
    color: #f5f5f5;
}

.register-copy {
    color: rgba(255, 255, 255, 0.78);
    font-family: "Lato", sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

.register-side-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.84);
    font-family: "Lato", sans-serif;
}

.register-side-list i {
    color: #ff5a5f;
    margin-top: 0.1rem;
}

/* Shell do formulário */
.register-shell {
    background: rgba(13, 16, 23, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Card do formulário */
.register-form-card {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.register-form-card .form-label {
    color: #f3f0ea;
    font-family: "Lato", sans-serif;
    font-size: 0.92rem;
}

.register-form-card .form-control,
.register-form-card .form-select {
    background-color: #0f1218;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f5f5f5;
    min-height: 48px;
}

.register-form-card .form-control:focus,
.register-form-card .form-select:focus {
    border-color: #e0252b;
    box-shadow: 0 0 0 0.18rem rgba(224, 37, 43, 0.14);
    background-color: #0f1218;
    color: #f5f5f5;
}

.register-form-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.register-form-card .form-select option {
    background-color: #0f1218;
    color: #f5f5f5;
}

.register-form-card .form-check-input {
    background-color: #0f1218;
    border-color: rgba(255, 255, 255, 0.16);
}

.register-form-card .form-check-input:checked {
    background-color: #e0252b;
    border-color: #e0252b;
}

/* Botão principal */
.register-btn {
    background: #e0252b;
    border: 1px solid #e0252b;
    color: #fff;
    font-family: "Staatliches", sans-serif;
    letter-spacing: 0.04em;
    font-size: 1.4rem;
    min-height: 52px;
}

.register-btn:hover,
.register-btn:focus {
    background: #c41c22;
    border-color: #c41c22;
    color: #fff;
}

/* Texto de rodapé do formulário */
.register-note {
    color: rgba(255, 255, 255, 0.64);
    font-family: "Lato", sans-serif;
    font-size: 0.88rem;
}

/* Mensagens de erro Devise */
.auth-errors {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #ff8a8a;
    font-family: "Lato", sans-serif;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.auth-errors ul {
    margin: 0;
    padding-left: 1.2rem;
}

/* Alerta flash */
.auth-flash-alert {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #ff8a8a;
    font-family: "Lato", sans-serif;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.auth-flash-notice {
    background: rgba(63, 185, 122, 0.1);
    border: 1px solid rgba(63, 185, 122, 0.2);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #8de0b0;
    font-family: "Lato", sans-serif;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

/* Responsivo */
@media (max-width: 991.98px) {
    .register-panel,
    .register-form-card {
        padding: 1.5rem;
    }

    .register-panel {
        border-radius: 8px 8px 0 0;
    }

    .register-shell {
        border-radius: 8px;
    }
}

/*
 * Links de apoio ("Esqueceu a senha?", "Registre-se"): a tela usa o Bootstrap do
 * CDN, onde `text-warning` é amarelo. A paleta da plataforma não tem amarelo em
 * destaque; o link ganha o vermelho claro do tema (legível sobre o fundo preto).
 */
.auth-page .text-warning {
    color: #ff5a5f !important;
}

.auth-page a.text-warning:hover {
    color: #ff8a8d !important;
}
