/* ============================================================
   style_login.css — LeadFLUX · Páginas de Autenticação
   Cobre: index.php, register.php, verificar.php,
          recuperar.php, reset_password.php
   ============================================================ */

:root {
    --cor-nav-bg:       #36454F;
    --cor-destaque:     #6082B6;
    --cor-hover:        #7393B3;
    --cor-fundo-site:   #E5E4E2;
    --cor-texto-escuro: #36454F;
    --cor-muted:        #708090;
    --cor-borda:        #B2BEB5;
    --cor-erro:         #c0392b;
    --cor-sucesso:      #27ae60;
}

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

html, body {
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--cor-fundo-site);
    background-image:
        radial-gradient(ellipse at 15% 50%, rgba(96,130,182,0.13) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 20%, rgba(54,69,79,0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 90%, rgba(96,130,182,0.07) 0%, transparent 45%);
}

/* ── Card ─────────────────────────────────────────────────── */
.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(54,69,79,0.15),
        0 4px 16px rgba(54,69,79,0.08);
    overflow: hidden;
}

/* ── Header ───────────────────────────────────────────────── */
.auth-header {
    background: linear-gradient(150deg, #36454F 0%, #4a5f6e 100%);
    padding: 32px 40px 26px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.auth-header::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(96,130,182,0.12);
    pointer-events: none;
}
.auth-header::after {
    content: '';
    position: absolute;
    bottom: -30px; left: -20px;
    width: 100px; height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}
.auth-logo-wrap {
    background: transparent;
    border: none;
    padding: 12px 28px;
    margin-bottom: 14px;
}
.auth-logo-wrap img {
    max-width: 160px;
    max-height: 48px;
    object-fit: contain;
}
.auth-header h1 {
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ── Body ─────────────────────────────────────────────────── */
.auth-body {
    padding: 30px 36px 26px;
}

/* ── Steps indicator ──────────────────────────────────────── */
.auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
}
.auth-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.auth-step-num {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--cor-borda);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.auth-step.active .auth-step-num { background: var(--cor-destaque); }
.auth-step.done   .auth-step-num { background: var(--cor-sucesso); }
.auth-step-label {
    font-size: 10px;
    color: var(--cor-muted);
    text-align: center;
    white-space: nowrap;
}
.auth-step-line {
    flex: 1;
    height: 2px;
    background: var(--cor-borda);
    min-width: 32px;
    margin-bottom: 16px;
}
.auth-step-line.done { background: var(--cor-sucesso); }

/* ── Alerts ───────────────────────────────────────────────── */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
}
.auth-alert svg, .auth-alert i { flex-shrink: 0; margin-top: 1px; }
.auth-alert-erro    { background: rgba(192,57,43,.07);  border: 1px solid rgba(192,57,43,.20); color: var(--cor-erro); }
.auth-alert-sucesso { background: rgba(39,174,96,.07);  border: 1px solid rgba(39,174,96,.20); color: var(--cor-sucesso); }
.auth-alert-info    { background: rgba(96,130,182,.07); border: 1px solid rgba(96,130,182,.20); color: var(--cor-destaque); }

/* ── Form groups ──────────────────────────────────────────── */
.auth-group { margin-bottom: 18px; }
.auth-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--cor-muted);
    margin-bottom: 6px;
}
.auth-input-wrap { position: relative; }
.auth-input-wrap .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cor-borda);
    font-size: 15px;
    pointer-events: none;
    transition: color .15s;
    display: flex; align-items: center;
}
.auth-input {
    width: 100%;
    padding: 11px 14px 11px 38px;
    border: 1.5px solid var(--cor-borda);
    border-radius: 10px;
    font-size: 14px;
    color: var(--cor-texto-escuro);
    background: #fafafa;
    outline: none;
    font-family: inherit;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.auth-input:focus {
    border-color: var(--cor-destaque);
    box-shadow: 0 0 0 3px rgba(96,130,182,.15);
    background: #fff;
}
.auth-input:focus ~ .input-icon,
.auth-input-wrap:focus-within .input-icon { color: var(--cor-destaque); }
.auth-input.erro { border-color: var(--cor-erro); }

/* Input sem ícone */
.auth-input.no-icon { padding-left: 14px; }

/* ── Password strength ────────────────────────────────────── */
.pass-strength {
    height: 4px;
    border-radius: 2px;
    background: #eee;
    margin-top: 6px;
    overflow: hidden;
}
.pass-strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width .3s, background .3s;
}
.pass-strength-label {
    font-size: 11px;
    color: var(--cor-muted);
    margin-top: 3px;
    min-height: 16px;
}

/* ── Button ───────────────────────────────────────────────── */
.btn-auth {
    width: 100%;
    padding: 13px;
    background: var(--cor-destaque);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 14px rgba(96,130,182,.28);
    transition: background .18s, box-shadow .18s, transform .1s;
}
.btn-auth:hover  {
    background: var(--cor-hover);
    box-shadow: 0 6px 18px rgba(96,130,182,.36);
    color: #fff;
}
.btn-auth:active { transform: scale(.99); }
.btn-auth:disabled { opacity: .55; cursor: not-allowed; }

/* ── Links footer ─────────────────────────────────────────── */
.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
.auth-links a {
    font-size: 13px;
    color: var(--cor-destaque);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color .15s;
}
.auth-links a:hover { color: var(--cor-hover); text-decoration: underline; }

/* ── Info box (sucesso / erro grande) ─────────────────────── */
.auth-info-box {
    text-align: center;
    padding: 8px 0 4px;
}
.auth-info-box .auth-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}
.auth-info-box h2 { font-size: 1.15rem; color: var(--cor-texto-escuro); margin-bottom: 8px; }
.auth-info-box p  { font-size: 14px; color: var(--cor-muted); line-height: 1.65; }

/* ── Footer da página ─────────────────────────────────────── */
.auth-footer {
    margin-top: 20px;
    font-size: 12px;
    color: #B2BEB5;
    text-align: center;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .auth-body   { padding: 22px 22px 18px; }
    .auth-header { padding: 24px 22px 18px; }
    .auth-card   { border-radius: 16px; }
}