/* ══════════════════════════════════════════════
   AutoCerto — Auth CSS (login + registro)
   Importa base.css do projeto e estende com
   o tema dark das páginas de autenticação.
══════════════════════════════════════════════ */

@import url('utils/base.css');
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Override: auth pages usam dark bg ──────── */
body {
    background: radial-gradient(circle at center, #1b3d73 0%, #0c1a33 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    margin: 0;
    font-family: 'DM Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
}

/* ── Design tokens (scoped neste arquivo) ───── */
:root {
    --auth-bg:           #080d18;
    --auth-card:         #111827;
    --auth-input-bg:     #1a2540;
    --auth-border:       #1e3a5f;
    --auth-border-focus: #3b82f6;
    --auth-text:         #f0f6ff;
    --auth-muted:        #64748b;
    --auth-subtle:       #94a3b8;
    --auth-accent:       #3b82f6;
    --auth-accent-glow:  rgba(59,130,246,0.25);
    --auth-accent-hover: #2563eb;
    --auth-error:        #ef4444;
    --auth-success:      #10b981;
    --auth-radius:       14px;
    --auth-transition:   0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ════════════════════════════════════════════
   LAYOUT COMPARTILHADO — .auth-bg / .auth-card
   Usado tanto no login quanto no registro
════════════════════════════════════════════ */

.auth-bg {
    min-height: 100dvh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Gradiente de fundo */
.auth-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% -10%, rgba(59,130,246,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 110%, rgba(99,102,241,0.08) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

/* Grid sutil */
.auth-bg::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
    z-index: 0;
}

/* FIX: removido .auth-card1 duplicado — usar só .auth-card */
.auth-card {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);  /* FIX: era 60dvh — unidade errada para largura */
    padding: 40px 45px 36px;  /* FIX: removido height fixo que cortava conteúdo */
    border-radius: 20px;
    text-align: center;
    background: #ffffff;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: authSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Registro pode ser mais largo */
.auth-card--wide { width: min(520px, 100%); } /* FIX: era max-width:1500px */

@keyframes authSlideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Header ─────────────────────────────────── */
.auth-header {
    margin-bottom: 8px;   /* FIX: era -80px — margin negativa exagerada */
    display: flex;
    justify-content: center;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}

/* FIX: logo com tamanho proporcional, sem margin-top negativo */
.auth-logo-img {
    width: 160px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    flex-shrink: 0;
}

.auth-logo-text {
    font-family: 'Syne', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: var(--auth-text);
    letter-spacing: -0.3px;
    line-height: 1;
}

.auth-logo-text span { color: var(--auth-accent); }

.auth-title {
    font-family: 'Syne', sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--auth-text);
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 13.5px;
    color: var(--auth-muted);
    font-weight: 400;
}

/* ── Títulos ─────────────────────────────────── */
.auth-titles {
    text-align: center;
    margin-bottom: 4px;
    padding: 0 4px;
}

.auth-title {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0B1F3A;
    margin: 0 0 4px;
    line-height: 1.2;
}

.auth-subtitle {
    font-size: 13px;
    color: var(--auth-muted);
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
}

/* ── Body ────────────────────────────────────── */
.auth-body {
    padding: 20px 0 8px;
}

/* ── Footer ─────────────────────────────────── */
.auth-footer {
    text-align: center;
    padding: 16px 0 4px;
    font-size: 13px;
    color: var(--auth-muted);
}

.auth-footer a {
    color: var(--auth-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--auth-transition);
}

.auth-footer a:hover { color: #93c5fd; }

/* ════════════════════════════════════════════
   ALERTAS — erros de validação e status
════════════════════════════════════════════ */

.auth-alert {
    display: flex;   /* FIX: era declarado display:none aqui, sobrescrito depois */
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 16px;
    padding: 13px 15px;
    border-radius: var(--auth-radius);
    animation: authFadeIn 0.3s ease both;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* FIX: removido display:none duplicado que escondia o alerta de erro */
.auth-alert--error {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.25);
}

.auth-alert--success {
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.25);
}

.auth-alert-icon {
    flex-shrink: 0;
    margin-top: 1px;
    line-height: 0;
}

.auth-alert-icon svg {
    width: 17px;
    height: 17px;
}

.auth-alert--error   .auth-alert-icon svg { color: var(--auth-error); }
.auth-alert--success .auth-alert-icon svg { color: var(--auth-success); }

.auth-alert-body { flex: 1; }

.auth-alert-title {
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 5px;
}

.auth-alert--error   .auth-alert-title { color: #fca5a5; }
.auth-alert--success .auth-alert-title { color: #6ee7b7; }

.auth-alert-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.auth-alert-list li {
    font-size: 12px;
    opacity: 0.85;
    padding-left: 11px;
    position: relative;
}

.auth-alert--error   .auth-alert-list li { color: #fca5a5; }
.auth-alert--success .auth-alert-list li { color: #6ee7b7; }

.auth-alert-list li::before {
    content: '·';
    position: absolute;
    left: 2px;
    font-size: 16px;
    line-height: 1;
    top: 0px;
}

.auth-alert-text {
    font-size: 13px;
}

.auth-alert--error   .auth-alert-text { color: #fca5a5; }
.auth-alert--success .auth-alert-text { color: #6ee7b7; }

.auth-alert-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    transition: opacity var(--auth-transition);
    line-height: 0;
    opacity: 0.5;
}

.auth-alert-close:hover { opacity: 1; }
.auth-alert-close svg { width: 13px; height: 13px; color: #fca5a5; }

/* ════════════════════════════════════════════
   CAMPOS DE FORMULÁRIO
════════════════════════════════════════════ */

.field-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;  /* necessário para o toggle de senha */
}

.field label {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--auth-subtle);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.field input,
.field select {
    width: 100%;
    box-sizing: border-box;  /* FIX: era width:92% — inconsistente */
    padding: 11px 14px;
    background: #ffffff;
    border: 1.5px solid var(--auth-border);
    border-radius: 10px;
    color: black;
    font-family: 'DM Sans', sans-serif;
    font-size: 14.5px;
    outline: none;
    transition: border-color var(--auth-transition), box-shadow var(--auth-transition);
    appearance: none;
    -webkit-appearance: none;
}

/* Campo de senha — espaço para o botão de toggle */
.field input[type="password"],
.field input.password-input {
    padding-right: 44px;
}

.field input::placeholder { color: var(--auth-muted); }

.field input:focus,
.field select:focus {
    border-color: var(--auth-border-focus);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

.field select option { background: #1a2540; }

/* Erro inline por campo */
.field-error-msg {
    color: var(--auth-error);
    font-size: 11.5px;
    display: none;
    text-align: left;
}

/* Email — erro centralizado */
#email ~ .field-error-msg,
.field:has(#email) .field-error-msg {
    text-align: center;
}

.field.has-error input,
.field.has-error select {
    border-color: var(--auth-error);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}

.field.has-error .field-error-msg { display: block; }

/* Nota informativa abaixo do campo */
.field-note {
    font-size: 11.5px;
    color: var(--auth-muted);
    min-height: 16px;
    text-align: left;
}

/* ── Toggle mostrar/ocultar senha ────────────── */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    box-sizing: border-box;
    padding-right: 44px;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--auth-muted);
    line-height: 0;
    transition: color var(--auth-transition);
    z-index: 2;
}

.btn-toggle-password:hover { color: var(--auth-accent); }

.btn-toggle-password svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Ícone de olho fechado — oculto por padrão */
.icon-eye-off { display: none; }

/* Quando o input está em modo "text" (senha visível) */
.btn-toggle-password.is-visible .icon-eye-on  { display: none; }
.btn-toggle-password.is-visible .icon-eye-off { display: block; }

/* ── Checkbox ───────────────────────────────── */
.checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--auth-accent);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-field span {
    font-size: 13.5px;
    color: var(--auth-subtle);
}

/* ── Divider ────────────────────────────────── */
.auth-divider {
    height: 1px;
    background: rgba(0,0,0,0.07);
    margin: 20px 0;
}

/* ════════════════════════════════════════════
   BOTÕES
════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    border: none;
    padding: 13px 28px;
    transition: background-color var(--auth-transition),
                box-shadow var(--auth-transition),
                opacity var(--auth-transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-full { width: 100%; }

.btn-primary {
    background-color: var(--auth-accent);
    color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--auth-accent-hover);
    box-shadow: 0 4px 16px rgba(59,130,246,0.35);
}

/* FIX: conflito de cor removido — span não precisa de cor separada */
.btn-primary span { position: relative; z-index: 1; }

/* Loading state */
.btn-primary:disabled,
.btn-primary.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-loading-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.7s linear infinite;
    flex-shrink: 0;
}

.btn-primary.is-loading .btn-loading-spinner { display: block; }
.btn-primary.is-loading .btn-label          { opacity: 0.7; }

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

.btn-ghost {
    background-color: transparent;
    color: var(--auth-accent);
    border: 1.5px solid var(--auth-accent);
}

.btn-ghost:hover:not(:disabled) {
    background-color: rgba(59,130,246,0.08);
    box-shadow: 0 4px 16px rgba(59,130,246,0.15);
}

/* FIX: btn-ghost também tinha fundo azul sólido — corrigido */
.btn-ghost span { position: relative; z-index: 1; }

/* ── Link estilo texto ───────────────────────── */
.btn-link {
    background: none;
    border: none;
    color: var(--auth-accent);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: color var(--auth-transition);
    font-family: 'DM Sans', sans-serif;
}

.btn-link:hover { color: var(--auth-accent-hover); }

/* ── Row de ações ────────────────────────────── */
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 24px;
}


/* ════════════════════════════════════════════
   INDICADOR DE FORÇA DE SENHA
════════════════════════════════════════════ */

.password-strength {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.strength-bars {
    display: flex;
    gap: 4px;
    flex: 1;
}

.strength-bar {
    height: 4px;
    flex: 1;
    border-radius: 99px;
    background: #e5e7eb;
    transition: background-color 0.3s ease;
}

.strength-bars[data-level="1"] .strength-bar[data-index="0"] { background: #ef4444; }

.strength-bars[data-level="2"] .strength-bar[data-index="0"],
.strength-bars[data-level="2"] .strength-bar[data-index="1"] { background: #f59e0b; }

.strength-bars[data-level="3"] .strength-bar[data-index="0"],
.strength-bars[data-level="3"] .strength-bar[data-index="1"],
.strength-bars[data-level="3"] .strength-bar[data-index="2"] { background: #3b82f6; }

.strength-bars[data-level="4"] .strength-bar { background: #16a34a; }

.strength-label {
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
    min-width: 56px;
    text-align: right;
    transition: color 0.3s ease;
}

.strength-label[data-level="1"] { color: #ef4444; }
.strength-label[data-level="2"] { color: #f59e0b; }
.strength-label[data-level="3"] { color: #3b82f6; }
.strength-label[data-level="4"] { color: #16a34a; }

/* ════════════════════════════════════════════
   ESQUECI / REDEFINIR SENHA
════════════════════════════════════════════ */

.forgot-intro {
    font-size: 13.5px;
    color: var(--auth-muted);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ════════════════════════════════════════════
   LOGIN — linha lembrar/esqueci
════════════════════════════════════════════ */

.login-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

/* ════════════════════════════════════════════
   WIZARD — progress steps (só no registro)
════════════════════════════════════════════ */

.progress-wrap {
    display: flex;
    align-items: center;
    padding: 20px 40px 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 17px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    height: 1px;
    background: var(--auth-border);
    transition: background var(--auth-transition);
}

.step-item.completed:not(:last-child)::after {
    background: var(--auth-accent);
}

.step-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid var(--auth-border);
    background: var(--auth-card);
    color: #ffffff;
    transition: all var(--auth-transition);
    position: relative;
    z-index: 1;
}

.step-item.active .step-dot {
    border-color: var(--auth-accent);
    background: var(--auth-accent-glow);
    color: var(--auth-accent);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
}

.step-item.completed .step-dot {
    border-color: var(--auth-accent);
    background: var(--auth-accent);
    color: #fff;
}

.step-label {
    font-size: 11px;
    font-weight: 500;
    color: black;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: color var(--auth-transition);
}

.step-item.active   .step-label { color: var(--auth-accent); }
.step-item.completed .step-label { color: var(--auth-subtle); }

.step-panel {
    display: none;
    animation: authFadeSlide 0.3s ease both;
}

.step-panel.active { display: block; }

@keyframes authFadeSlide {
    from { opacity: 0; transform: translateX(10px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ════════════════════════════════════════════
   TIPO DE CONTA — cards de seleção (registro)
════════════════════════════════════════════ */

.step-heading {
    font-family: 'Syne', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    color: black;
    margin-bottom: 14px;
    display: block;
    text-align: left;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 6px;
}

.type-card {
    position: relative;
    cursor: pointer;
}

.type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.type-card-inner {
    border: 2px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: 18px 10px 14px;
    text-align: center;
    background: var(--auth-input-bg);
    transition: all var(--auth-transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.type-card-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59,130,246,0.07), transparent);
    transition: opacity var(--auth-transition);
}

.type-card input:checked ~ .type-card-inner {
    border-color: var(--auth-accent);
    background: rgba(59,130,246,0.08);
    box-shadow:
        0 0 0 3px rgba(59,130,246,0.12),
        0 4px 16px rgba(59,130,246,0.1);
}

.type-card input:checked ~ .type-card-inner .type-name {
    color: #2467b4;
}

.type-card input:checked ~ .type-card-inner::before { opacity: 1; }

.type-card-inner:hover {
    border-color: rgba(59,130,246,0.45);
    transform: translateY(-2px);
}

.type-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    border-radius: 11px;
    background: rgba(59,130,246,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--auth-transition);
}

.type-card input:checked ~ .type-card-inner .type-icon {
    background: rgba(59,130,246,0.18);
}

.type-icon svg { width: 21px; height: 21px; color: var(--auth-accent); }

.type-name {
    font-family: 'Syne', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--auth-text);
    display: block;
    margin-bottom: 3px;
}

.type-desc {
    font-size: 10.5px;
    color: var(--auth-muted);
    line-height: 1.4;
}

.check-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--auth-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--auth-transition);
}

.type-card input:checked ~ .type-card-inner .check-badge {
    opacity: 1;
    transform: scale(1);
}

.check-badge svg { width: 11px; height: 11px; color: #fff; }

/* ── Campo condicional (raio de atendimento) ── */
.conditional-field {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
    margin-top: 0;
}

.conditional-field.visible {
    max-height: 100px;
    opacity: 1;
    margin-top: 14px;
}

/* Nota de tipo de documento */
.doc-type-note {
    font-size: 11.5px;
    color: var(--auth-muted);
    min-height: 16px;
}

/* ════════════════════════════════════════════
   RESPONSIVO
════════════════════════════════════════════ */

@media (max-width: 540px) {
    .auth-card {
        padding: 28px 20px 24px;
        border-radius: 18px;
        /* FIX: removido height fixo que quebrava mobile */
    }

    .progress-wrap { padding-left: 20px; padding-right: 20px; }

    .auth-alert { margin-left: 0; margin-right: 0; }

    /* FIX: logo proporcional no mobile */
    .auth-logo-img {
        width: 120px;
        height: auto;
    }

    .type-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .field-row { grid-template-columns: 1fr; }
    .step-label { display: none; }

    .progress-wrap {
        padding: 16px 16px 0;
        gap: 4px;
    }

    .step-dot {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .type-card-inner { padding: 12px 6px 10px; }
    .type-icon { width: 34px; height: 34px; }
    .type-name { font-size: 11px; }

    .field-row { grid-template-columns: 1fr; }

    .form-actions { flex-direction: column; }

    .btn { width: 100%; justify-content: center; }
}

/* ════════════════════════════════════════════
   MAPA DE RAIO DE ATENDIMENTO
════════════════════════════════════════════ */

#map-placeholder {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    border: 1.5px dashed var(--auth-border);
    background: #f8f9fb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--auth-muted);
    text-align: center;
    user-select: none;
}

#map-placeholder svg {
    width: 36px;
    height: 36px;
    opacity: .4;
    flex-shrink: 0;
}

#map-placeholder p {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--auth-muted);
    margin: 0;
}

#radius-map {
    width: 100%;
    height: 240px;
    border-radius: 12px;
    border: 1.5px solid var(--auth-border);
    overflow: hidden;
    margin-bottom: 14px;
    z-index: 0;
}

.radius-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.radius-map-label {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--auth-subtle);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.radius-map-value {
    font-size: 13px;
    color: var(--auth-accent);
    font-weight: 500;
}

.radius-map-value strong {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
}

.radius-slider-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.radius-slider-min,
.radius-slider-max {
    font-size: 11px;
    color: var(--auth-muted);
    white-space: nowrap;
    min-width: 36px;
}

.radius-slider-max { text-align: right; }

.radius-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(
        to right,
        var(--auth-accent) 0%,
        var(--auth-accent) var(--slider-pct, 5%),
        #e5e7eb var(--slider-pct, 5%),
        #e5e7eb 100%
    );
    outline: none;
    cursor: pointer;
    border: none;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.radius-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--auth-accent);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(59,130,246,0.4);
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}

.radius-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 6px rgba(59,130,246,0.15);
}

.radius-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--auth-accent);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(59,130,246,0.4);
    cursor: pointer;
}

.radius-map-hint {
    font-size: 11.5px;
    color: var(--auth-muted);
    text-align: center;
    margin-bottom: 4px;
}

/* Garante que o Leaflet não vaze do card */
.leaflet-container {
    font-family: 'DM Sans', sans-serif;
    border-radius: 12px;
}

/* ════════════════════════════════════════════
   EMAIL STATUS — ícone de disponibilidade
════════════════════════════════════════════ */

.email-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(59,130,246,0.25);
    border-top-color: var(--auth-accent);
    border-radius: 50%;
    animation: btnSpin 0.7s linear infinite;
    vertical-align: middle;
}

/* ════════════════════════════════════════════
   VERIFICAÇÃO DE E-MAIL
════════════════════════════════════════════ */

.verify-email-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.verify-email-icon svg {
    width: 52px;
    height: 52px;
    color: var(--auth-accent);
    opacity: 0.85;
}

.verify-email-text {
    font-size: 13.5px;
    color: var(--auth-muted);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 24px;
}