/* =============================================
   CEENF — Auth Pages (login, reset-password…)
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    min-height: 100vh;
    display: flex;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #ffffff;
}

/* ── Layout ── */
.auth-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ── Painel esquerdo (vermelho) ── */
.auth-side {
    width: 420px;
    flex-shrink: 0;
    background: linear-gradient(145deg, #e55353 0%, #7f1d1d 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}
.auth-side::before {
    content: '';
    position: absolute;
    bottom: -60px; right: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
}
.auth-side::after {
    content: '';
    position: absolute;
    top: -40px; left: -40px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
}
.auth-side-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}
.auth-brand-logo {
    display: block;
    max-width: min(240px, 86vw);
    width: 100%;
    height: auto;
    margin: 0 auto 14px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
}
.auth-side-tagline {
    font-size: .9rem;
    opacity: .82;
    line-height: 1.65;
    margin-bottom: 36px;
}
.auth-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255,255,255,.8);
    font-size: .84rem;
    line-height: 1.5;
    margin-bottom: 16px;
    text-align: left;
}
.auth-feature-icon {
    width: 30px; height: 30px;
    flex-shrink: 0;
    background: rgba(255,255,255,.12);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
}

/* ── Área do formulário (branca) ── */
.auth-form-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: #ffffff;
}
.auth-card {
    width: 100%;
    max-width: 420px;
}
.auth-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212631;
    margin-bottom: 6px;
}
.auth-card .subtitle {
    color: #6d7d9c;
    font-size: .88rem;
    margin-bottom: 32px;
}

/* ── Campos ── */
.auth-label {
    display: block;
    font-size: .83rem;
    font-weight: 600;
    color: #212631;
    margin-bottom: 6px;
}
.auth-input-wrap { position: relative; }
.auth-input-icon {
    position: absolute;
    left: 11px; top: 50%; transform: translateY(-50%);
    color: #6d7d9c;
    font-size: .9rem;
    pointer-events: none;
}
.auth-input {
    width: 100%;
    padding: 9px 12px 9px 36px;
    border: 1.5px solid #dbdfe6;
    border-radius: 6px;
    font-size: .88rem;
    color: #212631;
    background: #fff;
    outline: none;
    font-family: inherit;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.auth-input:focus {
    border-color: #e55353;
    box-shadow: 0 0 0 3px rgba(229,83,83,.12);
}
.auth-input.is-invalid { border-color: #e55353; }
.auth-invalid-msg {
    color: #e55353;
    font-size: .78rem;
    margin-top: 4px;
}

/* ── Botão ── */
.btn-auth {
    width: 100%;
    padding: 11px;
    background: #e55353;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    margin-top: 8px;
    transition: background .18s ease;
    font-family: inherit;
}
.btn-auth:hover  { background: #c53030; }
.btn-auth:active { background: #9b1c1c; }

/* ── Alertas ── */
.auth-alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: .83rem;
    border-left: 4px solid;
    margin-bottom: 18px;
}
.auth-alert-success { background: #cbedd6; border-color: #1b9e3e; color: #0f5722; }
.auth-alert-error   { background: #f9d4d4; border-color: #e55353; color: #7f1d1d; }

/* ── Divider e rodapé ── */
.auth-divider { height: 1px; background: #dbdfe6; margin: 22px 0; }
.auth-info-box {
    background: #f3f4f7;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: .8rem;
    color: #6d7d9c;
}
.auth-info-box strong { color: #212631; }
.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: .78rem;
    color: #aab3c5;
}

/* ── Responsivo ── */
@media (max-width: 768px) {
    .auth-side { display: none; }
    .auth-form-area { padding: 32px 20px; }
}
