/**
 * ZATAM LOANS — login, register, verify email, installer
 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --za-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --za-bg0: #0b1220;
    --za-bg1: #111827;
    --za-panel: #ffffff;
    --za-border: rgba(15, 23, 42, 0.08);
    --za-accent: #2563eb;
    --za-accent-hover: #1d4ed8;
    --za-muted: #64748b;
}

body.zatam-auth-layout {
    font-family: var(--za-font);
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: radial-gradient(1200px 600px at 10% -10%, rgba(37, 99, 235, 0.22), transparent 50%),
        radial-gradient(900px 500px at 100% 0%, rgba(14, 165, 233, 0.12), transparent 45%),
        linear-gradient(165deg, var(--za-bg0) 0%, var(--za-bg1) 100%);
    -webkit-font-smoothing: antialiased;
}

.zatam-auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--za-panel);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--za-border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.zatam-auth-card--wide {
    max-width: 720px;
}

.zatam-auth-head {
    background: #0f172a;
    color: #fff;
    padding: 1.75rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.zatam-auth-head h1,
.zatam-auth-head h2,
.zatam-auth-head h3 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-size: 1.35rem;
}

.zatam-auth-head p {
    margin: 0.5rem 0 0;
    opacity: 0.72;
    font-size: 0.9rem;
}

.zatam-auth-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
    min-height: 2.5rem;
}

.zatam-auth-brand-fa {
    font-size: 2.25rem;
    line-height: 1;
    opacity: 0.95;
}

/* Logo in dark auth/register headers: transparent, scales to card width */
.zatam-auth-brand-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 280px);
    max-height: clamp(40px, 12vw, 64px);
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.zatam-auth-body {
    padding: 1.75rem 1.5rem;
}

.zatam-auth-body .form-control {
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    border: 1px solid #e2e8f0;
}

.zatam-auth-body .form-control:focus {
    border-color: var(--za-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.zatam-btn-primary-solid {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-weight: 600;
    background: var(--za-accent);
    color: #fff;
}

.zatam-btn-primary-solid:hover {
    background: var(--za-accent-hover);
    color: #fff;
}

/* Register wizard */
.zatam-step-indicator {
    display: flex;
    justify-content: space-between;
    margin: 1.25rem 1.5rem 0;
    position: relative;
}

.zatam-step-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.zatam-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.zatam-step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e2e8f0;
    color: var(--za-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.35rem;
    font-weight: 700;
    font-size: 0.85rem;
}

.zatam-step.active .zatam-step-circle {
    background: var(--za-accent);
    color: #fff;
}

.zatam-step.completed .zatam-step-circle {
    background: #059669;
    color: #fff;
}

.zatam-package-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.zatam-package-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.zatam-package-card.selected {
    border-color: var(--za-accent);
    background: rgba(37, 99, 235, 0.04);
}

.zatam-package-card.free.selected {
    border-color: #059669;
    background: rgba(5, 150, 105, 0.06);
}

.zatam-price {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--za-accent);
}

/* Installer uses same card */
.install-body {
    padding: 1.5rem;
}

.install-card {
    width: 100%;
    max-width: 500px;
    background: var(--za-panel);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--za-border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.install-header {
    background: #0f172a;
    color: #fff;
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Register page legacy class names */
.register-card {
    width: 100%;
    max-width: 720px;
    background: var(--za-panel);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--za-border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
    margin: 0 auto;
}

.register-header {
    background: #0f172a;
    color: #fff;
    padding: 1.75rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.register-header h2 {
    margin: 0;
    font-weight: 600;
    font-size: 1.35rem;
}

.register-header .zatam-auth-brand-icon {
    margin-bottom: 0.75rem;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin: 1.25rem 1.5rem 0;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e2e8f0;
    color: var(--za-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.35rem;
    font-weight: 700;
    font-size: 0.85rem;
}

.step.active .step-circle {
    background: var(--za-accent);
    color: #fff;
}

.step.completed .step-circle {
    background: #059669;
    color: #fff;
}

.package-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.package-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.package-card.selected {
    border-color: var(--za-accent);
    background: rgba(37, 99, 235, 0.04);
}

.package-card.free.selected {
    border-color: #059669;
    background: rgba(5, 150, 105, 0.06);
}

.package-card.free {
    border-color: rgba(5, 150, 105, 0.35);
}

.price {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--za-accent);
}

/* ---------- Auth redesign layer (v2) ---------- */
:root {
    --za-panel-soft: #f8fbff;
}

body.zatam-auth-layout {
    background:
        radial-gradient(1200px 560px at 8% -8%, rgba(59, 130, 246, 0.27), transparent 50%),
        radial-gradient(920px 520px at 110% 0%, rgba(14, 165, 233, 0.17), transparent 45%),
        linear-gradient(162deg, #0a1020 0%, #0f172a 52%, #111827 100%);
}

.zatam-auth-card,
.register-card,
.install-card {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 24px 64px rgba(2, 6, 23, 0.4);
}

.zatam-auth-head,
.register-header,
.install-header {
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0)) ,
        linear-gradient(170deg, #0b1325 0%, #111b33 100%);
}

.zatam-auth-body .form-control,
.register-card .form-control,
.register-card .form-select,
.install-card .form-control,
.install-card .form-select {
    border-radius: 10px;
    border: 1px solid #d3deea;
}

.zatam-auth-body .form-control:focus,
.register-card .form-control:focus,
.register-card .form-select:focus,
.install-card .form-control:focus,
.install-card .form-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.zatam-btn-primary-solid,
.register-card .btn-primary,
.install-card .btn-primary {
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.step-circle,
.zatam-step-circle {
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.package-card,
.zatam-package-card {
    border-radius: 12px;
    background: linear-gradient(180deg, #fff 0%, var(--za-panel-soft) 100%);
}
