/* ══════════════════════════════════════════════════════════════
   Telas de acesso (cadastro, esqueci minha senha) — mesmo visual do login
   ══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --red: #E5262B; --red-dark: #C81E23; --red-soft: #FEF2F2; --txt: #111827; --sub: #6B7280;
    --border: #E5E7EB; --field: #FFFFFF; --muted: #F3F4F6; --ok: #16A34A;
}
html, body { min-height: 100%; }
body { font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif; color: var(--txt); background: #0E0506; }
svg { display: block; }

.au-wrap { min-height: 100vh; display: flex; }
.au-hero { flex: 1 1 52%; position: relative; background: #0E0506 url('/assets/img/login-hero.jpg?v=2') left center / cover no-repeat; min-height: 100vh; }
.au-hero::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 140px; background: linear-gradient(90deg, rgba(14,5,6,0) 0%, #0E0506 100%); }
.au-side {
    flex: 0 0 48%; min-width: 560px; display: flex; align-items: center; justify-content: center; padding: 36px 32px;
    background:
        radial-gradient(ellipse at 85% 0%, rgba(229,38,43,.28) 0, rgba(229,38,43,0) 55%),
        radial-gradient(ellipse at 10% 100%, rgba(229,38,43,.16) 0, rgba(229,38,43,0) 50%),
        linear-gradient(180deg, #160809 0%, #0E0506 100%);
}
.au-card { width: 100%; max-width: 620px; background: #fff; border-radius: 26px; padding: 34px 36px 30px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }

.au-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.au-brand img { width: 56px; height: 56px; border-radius: 15px; }
.au-brand-name { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.au-brand-name span { color: var(--red); }
.au-brand-tag { margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: .32em; color: #4B5563; }
.au-badge { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--ok); background: #ECFDF5; border: 1px solid #A7F3D0; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }

.au-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.au-subtitle { margin: 4px 0 20px; font-size: 15px; color: var(--sub); }

/* Etapas */
.au-steps { display: flex; gap: 8px; margin-bottom: 22px; }
.au-step { flex: 1; display: flex; flex-direction: column; gap: 7px; cursor: default; }
.au-step-bar { height: 5px; border-radius: 5px; background: var(--muted); overflow: hidden; }
.au-step-bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .25s ease; }
.au-step.is-done .au-step-bar i, .au-step.is-on .au-step-bar i { width: 100%; }
.au-step-lbl { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #9CA3AF; }
.au-step-num { width: 20px; height: 20px; border-radius: 50%; background: var(--muted); color: #6B7280; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.au-step.is-on .au-step-lbl { color: var(--txt); }
.au-step.is-on .au-step-num, .au-step.is-done .au-step-num { background: var(--red); color: #fff; }

.au-pane { display: none; }
.au-pane.is-on { display: block; animation: au-in .18s ease; }
@keyframes au-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

.au-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.au-grid .au-col-2 { grid-column: 1 / -1; }
.au-field { margin-bottom: 15px; }
.au-field label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.au-field label small { font-weight: 500; color: var(--sub); font-size: 12px; }
.au-req { color: var(--red); }
.au-input-wrap { position: relative; }
.au-input, .au-select {
    width: 100%; height: 50px; padding: 0 14px; font-size: 15.5px; color: var(--txt); background: var(--field);
    border: 1.5px solid var(--border); border-radius: 12px; outline: none; transition: border-color .15s, box-shadow .15s; font-family: inherit;
}
.au-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.au-select:disabled { background-color: var(--muted); color: #9CA3AF; }
.au-input::placeholder { color: #9CA3AF; }
.au-input:focus, .au-select:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229,38,43,.12); }
.au-input.is-invalid, .au-select.is-invalid { border-color: var(--red); background: #FFFBFB; }
.au-input.has-btn { padding-right: 52px; }
.au-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: #4B5563; border-radius: 8px; }
.au-eye:hover { background: var(--muted); }
.au-eye svg { width: 20px; height: 20px; }
.au-hint { font-size: 12.5px; color: var(--sub); margin-top: 5px; min-height: 16px; }
.au-hint.is-ok { color: var(--ok); }
.au-hint.is-erro { color: #B91C1C; }
.au-spin { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2.5px solid #E5E7EB; border-top-color: var(--red); border-radius: 50%; animation: au-gira .7s linear infinite; display: none; }
.au-spin.is-on { display: block; }
@keyframes au-gira { to { transform: rotate(360deg); } }

/* Força da senha */
.au-forca { display: flex; gap: 5px; margin-top: 8px; }
.au-forca i { flex: 1; height: 5px; border-radius: 5px; background: var(--muted); transition: background .2s; }
.au-forca[data-n="1"] i:nth-child(-n+1) { background: #EF4444; }
.au-forca[data-n="2"] i:nth-child(-n+2) { background: #F59E0B; }
.au-forca[data-n="3"] i:nth-child(-n+3) { background: #84CC16; }
.au-forca[data-n="4"] i:nth-child(-n+4) { background: var(--ok); }

.au-resumo { background: #F9FAFB; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 13.5px; color: #374151; line-height: 1.6; }
.au-resumo b { color: var(--txt); }

.au-actions { display: flex; gap: 10px; margin-top: 6px; }
.au-btn {
    flex: 1; height: 54px; border: none; border-radius: 13px; cursor: pointer; font-family: inherit;
    background: linear-gradient(180deg, #EF3238 0%, var(--red) 55%, var(--red-dark) 100%);
    color: #fff; font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px;
    box-shadow: 0 10px 22px rgba(229,38,43,.26); transition: transform .1s, box-shadow .15s, opacity .15s;
}
.au-btn:hover { box-shadow: 0 12px 26px rgba(229,38,43,.34); }
.au-btn:active { transform: translateY(1px); }
.au-btn[disabled] { opacity: .7; cursor: wait; }
.au-btn kbd, .au-btn-sec kbd { font: inherit; font-size: 11px; opacity: .75; border: 1px solid rgba(255,255,255,.45); border-radius: 5px; padding: 1px 6px; }
.au-btn-sec { flex: 0 0 auto; height: 54px; padding: 0 18px; border-radius: 13px; border: 1.5px solid var(--border); background: #fff; color: var(--txt); font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.au-btn-sec:hover { background: var(--muted); }
.au-btn-sec kbd { border-color: #D1D5DB; color: #6B7280; }
.au-btn-zap { background: #25D366; box-shadow: 0 10px 22px rgba(37,211,102,.25); text-decoration: none; }

.au-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; line-height: 1.45; }
.au-alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.au-alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.au-alert-info { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.au-alert-ok { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }

.au-trust { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-top: 16px; font-size: 12.5px; color: var(--sub); }
.au-trust span { display: inline-flex; align-items: center; gap: 6px; }
.au-trust svg { width: 15px; height: 15px; color: var(--ok); }
.au-foot { margin-top: 16px; text-align: center; font-size: 14.5px; color: #4B5563; line-height: 1.9; }
.au-foot a { color: var(--red); font-weight: 700; text-decoration: none; }
.au-foot a:hover { text-decoration: underline; }
.au-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--sub); font-size: 13px; }
.au-sep::before, .au-sep::after { content: ''; flex: 1; height: 1px; background: var(--border); }

@media (max-width: 1180px) {
    .au-hero { display: none; }
    .au-side { flex: 1 1 100%; min-width: 0; }
}
@media (max-width: 600px) {
    .au-side { padding: 16px 12px; align-items: flex-start; }
    .au-card { padding: 24px 18px 22px; border-radius: 20px; }
    .au-grid { grid-template-columns: 1fr; }
    .au-badge { display: none; }
    .au-step-lbl span:not(.au-step-num) { display: none; }
    .au-actions { flex-direction: column-reverse; }
    .au-actions .au-btn, .au-actions .au-btn-sec { flex: 0 0 auto; }
    .au-btn-sec { justify-content: center; }
}
