/* ══════════════════════════════════════════════════════════════════════
   INMOB360 • REPRESENTANTE LOGIN CSS
   ══════════════════════════════════════════════════════════════════════ */

:root {
    --primary:       #ea580c;
    --primary-hover: #c2410c;
    --primary-soft:  rgba(249,115,22,.15);
    --text:          #0f172a;
    --text-muted:    #64748b;
    --border:        #e2e8f0;
    --border-strong: #cbd5e1;
    --danger:        #ef4444;
    --danger-bg:     #fee2e2;
}

*, *::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(--text);
    -webkit-font-smoothing: antialiased;
}

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

/* ── Shell split ──────────────────────────────────────────────────────── */
.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
}

/* ── Lado esquerdo: hero ──────────────────────────────────────────────── */
.login-hero {
    background: radial-gradient(ellipse at top left, #431407 0%, #1c0a02 50%, #0f172a 100%);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 48px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}
.login-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(249,115,22,.35) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(234,88,12,.25) 0%, transparent 55%);
    pointer-events: none;
}

.login-hero-inner { position: relative; max-width: 480px; }

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}
.brand-mark {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -.02em;
    flex-shrink: 0;
}
.brand-text { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand-text span { color: #fb923c; }

.rep-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(249,115,22,.15);
    border: 1px solid rgba(249,115,22,.3);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #fb923c;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 32px;
}
.rep-badge svg { width: 12px; height: 12px; flex-shrink: 0; }

.login-hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #fed7aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.login-hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,.7);
    line-height: 1.6;
    margin-bottom: 40px;
}

.login-hero-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.login-hero-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,.85);
}
.login-hero-features svg {
    width: 18px; height: 18px;
    color: #fb923c;
    flex-shrink: 0;
    background: rgba(251,146,60,.15);
    padding: 4px;
    border-radius: 50%;
    box-sizing: content-box;
}

/* ── Lado direito: painel ─────────────────────────────────────────────── */
.login-panel {
    background: #0b1220;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
    min-height: 100vh;
}

/* ── Tabs ─────────────────────────────────────────────────────────────── */
.login-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,.06);
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 32px;
    width: fit-content;
}
.tab-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    color: #475569;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, color .15s;
}
.tab-btn.active {
    background: rgba(255,255,255,.1);
    color: #f1f5f9;
    box-shadow: none;
}

/* ── Formulários ──────────────────────────────────────────────────────── */
.auth-form { display: none; flex-direction: column; gap: 16px; }
.auth-form.active { display: flex; }
.auth-form h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: #f1f5f9; }
.form-sub { color: #64748b; font-size: 14px; margin-top: -8px; margin-bottom: 8px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: #94a3b8; }

.field input,
.field select {
    width: 100%;
    min-width: 0;
    padding: 11px 14px;
    border: 1.5px solid rgba(255,255,255,.1);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(255,255,255,.04);
    color: #f1f5f9;
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
    -webkit-appearance: none;
}
.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'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}
.field select option { background: #0f1f35; color: #f1f5f9; }
.field input:focus,
.field select:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.field input::placeholder { color: #334155; }

.field-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 12px;
    width: 100%;
}
.field-grid .field { min-width: 0; }

.field-hint {
    font-size: 11px;
    color: #475569;
    margin-top: 2px;
    line-height: 1.4;
}

/* Botão principal */
.btn-primary {
    width: 100%;
    background: var(--primary);
    color: #fff;
    padding: 13px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: 0;
    margin-top: 8px;
    font-family: inherit;
    transition: background .15s, transform .1s;
    box-shadow: 0 4px 14px -4px rgba(234,88,12,.5);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

/* Alerts */
.alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert--error   { background: rgba(239,68,68,.1); color: #fca5a5; border: 1px solid rgba(239,68,68,.25); }
.alert--success { background: rgba(34,197,94,.1); color: #86efac; border: 1px solid rgba(34,197,94,.2); }

/* Aviso de aprovação */
.notice-box {
    background: rgba(249,115,22,.07);
    border: 1px solid rgba(249,115,22,.2);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.5;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.notice-box strong { color: #fb923c; }
.notice-box svg { flex-shrink: 0; margin-top: 1px; color: #ea580c; }

/* Aceite de termos */
.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    margin-top: 4px;
}
.terms-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid rgba(255,255,255,.25);
    border-radius: 5px;
    background: rgba(255,255,255,.04);
    margin-top: 1px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    position: relative;
}
.terms-check input[type="checkbox"]:checked {
    background: #ea580c;
    border-color: #ea580c;
}
.terms-check input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px; top: 1px;
    width: 6px; height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}
.terms-check a {
    color: #fb923c;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.terms-check a:hover { color: #f97316; }

/* Rodapé */
.login-footer {
    margin-top: 32px;
    font-size: 12px;
    color: #475569;
    text-align: center;
}
.login-footer a { color: #fb923c; }

/* ── Responsivo ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-hero  { display: none; }
    .login-panel {
        background: #0b1220;
        padding: 40px 24px;
        min-height: 100vh;
        justify-content: flex-start;
        padding-top: 48px;
        max-width: 100%;
    }
}
@media (max-width: 480px) {
    .login-panel { padding: 32px 20px; }
    .field-grid  { grid-template-columns: 1fr; }
    .login-hero-title { font-size: 28px; }
}
