/* ════════════════════════════════════════════════════════════════════════
   INMOB360 • ANUNCIAR IMÓVEL — CSS do cadastro de proprietário
   ══════════════════════════════════════════════════════════════════════════ */

:root {
    --color-bg:           #f0fdf4;
    --color-panel:        #ffffff;
    --color-hero-from:    #064e3b;
    --color-hero-to:      #065f46;
    --color-accent:       #059669;
    --color-accent-hover: #047857;
    --color-accent-soft:  #d1fae5;
    --color-accent-glow:  rgba(5, 150, 105, .35);
    --color-text:         #0f172a;
    --color-muted:        #64748b;
    --color-border:       #e2e8f0;
    --color-border-focus: #059669;
    --color-danger:       #dc2626;
    --color-danger-bg:    #fee2e2;
    --color-danger-bd:    #fca5a5;
}

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

html, body {
    height: 100%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    background: var(--color-bg);
}

a { color: inherit; text-decoration: none; }

/* ─── SHELL PRINCIPAL ───────────────────────────────────────────────────── */
.an-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO — lado esquerdo
   ═══════════════════════════════════════════════════════════════════════════ */
.an-hero {
    background:
        radial-gradient(ellipse at 10% 20%, rgba(6,78,59,.9) 0%, transparent 60%),
        radial-gradient(ellipse at 90% 80%, rgba(5,150,105,.5) 0%, transparent 55%),
        linear-gradient(160deg, #022c22 0%, #064e3b 50%, #065f46 100%);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 56px 52px;
    position: relative;
    overflow: hidden;
}

.an-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 85%, rgba(52,211,153,.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(16,185,129,.1) 0%, transparent 40%);
    pointer-events: none;
}

/* Padrão sutil de grade no fundo */
.an-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.an-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 460px;
}

/* Marca / logo */
.an-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 60px;
    text-decoration: none;
}
.an-brand-mark {
    width: 42px; height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -.03em;
    box-shadow: 0 4px 12px rgba(5,150,105,.4);
}
.an-brand-text {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -.02em;
    color: #fff;
}
.an-brand-text span { color: #6ee7b7; }

/* Badge acima do título */
.an-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(52,211,153,.15);
    border: 1px solid rgba(52,211,153,.3);
    color: #6ee7b7;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 20px;
    letter-spacing: .02em;
}
.an-hero-badge svg { flex-shrink: 0; }

/* Título principal */
.an-hero-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.04em;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.an-hero-sub {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,.68);
    margin-bottom: 44px;
    max-width: 380px;
}

/* Lista de benefícios */
.an-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 44px;
}
.an-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,.88);
}
.an-features-icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: rgba(52,211,153,.18);
    border: 1px solid rgba(52,211,153,.25);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #6ee7b7;
}

/* Rodapé do hero */
.an-hero-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.42);
    transition: color .15s;
}
.an-hero-back:hover { color: rgba(255,255,255,.7); }

/* ═══════════════════════════════════════════════════════════════════════════
   PAINEL — lado direito (formulário)
   ═══════════════════════════════════════════════════════════════════════════ */
.an-panel {
    background: var(--color-panel);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 52px;
}

.an-panel-inner {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

/* Cabeçalho do painel */
.an-panel-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 10px;
}
.an-panel-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--color-text);
    margin-bottom: 6px;
    line-height: 1.2;
}
.an-panel-sub {
    font-size: 14px;
    color: var(--color-muted);
    margin-bottom: 32px;
    line-height: 1.55;
}

/* Separador */
.an-divider {
    height: 1px;
    background: var(--color-border);
    margin-bottom: 28px;
}

/* ─── ALERTA DE ERRO ────────────────────────────────────────────────────── */
.an-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 20px;
}
.an-alert--error {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid var(--color-danger-bd);
}
.an-alert svg { flex-shrink: 0; margin-top: 1px; }

/* ─── FORMULÁRIO ────────────────────────────────────────────────────────── */
.an-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Linha com dois campos lado a lado */
.an-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Campo individual */
.an-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.an-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: .01em;
}

.an-field .an-hint {
    font-size: 11px;
    color: var(--color-muted);
    margin-top: -2px;
}

.an-field input {
    width: 100%;
    min-width: 0;
    padding: 11px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fafafa;
    color: var(--color-text);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.an-field input::placeholder { color: #94a3b8; }
.an-field input:focus {
    outline: none;
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
    background: #fff;
}

/* Regras de senha */
.an-password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: -4px;
}
.an-password-rule {
    font-size: 11px;
    color: var(--color-muted);
    background: #f1f5f9;
    border-radius: 4px;
    padding: 2px 7px;
}

/* ─── BOTÃO PRINCIPAL ───────────────────────────────────────────────────── */
.an-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: -.01em;
    margin-top: 4px;
    transition: transform .15s, box-shadow .15s, filter .15s;
    box-shadow: 0 4px 16px -4px var(--color-accent-glow);
    position: relative;
    overflow: hidden;
}
.an-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.1) 0%, transparent 100%);
    pointer-events: none;
}
.an-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px -6px var(--color-accent-glow);
    filter: brightness(1.05);
}
.an-btn:active { transform: translateY(0); }

/* ─── LINK SECUNDÁRIO ───────────────────────────────────────────────────── */
.an-secondary-link {
    text-align: center;
    font-size: 13px;
    color: var(--color-muted);
    margin-top: 20px;
    line-height: 1.5;
}
.an-secondary-link a {
    color: var(--color-accent);
    font-weight: 600;
    transition: color .15s;
}
.an-secondary-link a:hover { color: var(--color-accent-hover); }

/* Termos */
.an-terms {
    text-align: center;
    font-size: 11px;
    color: var(--color-muted);
    line-height: 1.6;
    margin-top: 16px;
}
.an-terms a { color: var(--color-accent); font-weight: 500; }

/* ─── RESPONSIVO ────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .an-shell { grid-template-columns: 1fr; }
    .an-hero  { display: none; }
    .an-panel {
        padding: 40px 24px;
        min-height: 100vh;
        justify-content: flex-start;
        padding-top: 48px;
    }
}

@media (max-width: 480px) {
    .an-row { grid-template-columns: 1fr; }
    .an-panel { padding: 32px 16px; }
}
