* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 1.5rem 0;
}

.main-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 95%;
    max-width: 1100px;
    background: white;
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.12);
}

.image-panel {
    position: relative;
    padding: 3rem 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 680px;
    overflow: hidden;
    background: linear-gradient(160deg, #0a2540 0%, #0d3d52 25%, #0f5249 50%, #1a6b50 75%, #0e3d3a 100%);
}
.image-panel::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52,211,153,0.18) 0%, transparent 70%);
    z-index: 1;
}
.image-panel::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56,189,248,0.14) 0%, transparent 70%);
    z-index: 1;
}

.panel-ring-1 {
    position: absolute; z-index: 1;
    top: 42%; left: 50%; transform: translate(-50%,-50%);
    width: 420px; height: 420px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.05);
}
.panel-ring-2 {
    position: absolute; z-index: 1;
    top: 42%; left: 50%; transform: translate(-50%,-50%);
    width: 600px; height: 600px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.03);
}
.panel-dots {
    position: absolute; inset: 0; z-index: 1;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
}
.z-over { position: relative; z-index: 2; color: white; }

.brand-wordmark { font-size: 3.4rem; font-weight: 900; letter-spacing: -1px; line-height: 1; filter: drop-shadow(0 4px 24px rgba(0,0,0,0.3)); }
.wordmark-nidhi { color: #ffffff; }
.wordmark-nalam { color: #34d399; }
.brand-divider { width: 48px; height: 3px; background: linear-gradient(90deg, #34d399, #38bdf8); border-radius: 2px; margin: 1rem auto; }
.brand-sub { font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.60); letter-spacing: 0.04em; }

.bottom-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(12px); border-radius: 1.25rem; padding: 1.25rem 1.5rem; }
.stat-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.15); border-radius: 999px; padding: 4px 12px; font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.85); letter-spacing: 0.05em; }

.form-panel {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 100vh;
}
.form-inner { margin: auto 0; width: 100%; max-width: 420px; margin-left: auto; margin-right: auto; }

.step-indicator { display: flex; align-items: center; }
.step { display: flex; flex-direction: column; align-items: center; flex: 1; }
.step-circle { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; transition: all 0.3s ease; }
.step-line { flex: 1; height: 2px; transition: all 0.3s ease; }
.step-label { font-size: 9px; margin-top: 5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; text-align: center; transition: color 0.3s; }
.step-pending .step-circle { background: #f1f5f9; color: #94a3b8; }
.step-pending .step-label  { color: #94a3b8; }
.step-active .step-circle  { background: linear-gradient(135deg, #0a2540, #1a6b50); color: #fff; box-shadow: 0 4px 14px rgba(10,37,64,0.35); }
.step-active .step-label   { color: #0f5249; }
.step-done .step-circle    { background: #22c55e; color: #fff; }
.step-done .step-label     { color: #16a34a; }
.step-line-pending { background: #e2e8f0; }
.step-line-done    { background: #22c55e; }

.btn-auth {
    width: 100%; background: linear-gradient(135deg, #0a2540, #1a6b50);
    color: white; padding: 0.875rem; border-radius: 0.875rem;
    font-weight: 800; font-size: 0.875rem; letter-spacing: 0.02em;
    border: none; cursor: pointer;
    transition: opacity .2s, transform .1s, box-shadow .2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-auth:hover:not(:disabled) { opacity: 0.92; box-shadow: 0 8px 20px -6px rgba(10,37,64,0.4); }
.btn-auth:active:not(:disabled) { transform: scale(.98); }
.btn-auth:disabled { opacity: 0.5; cursor: not-allowed; }

.fade-panel { transition: opacity 0.25s ease, transform 0.25s ease; }
.fade-panel.hidden { opacity: 0; pointer-events: none; height: 0; overflow: hidden; transform: translateY(6px); }
.fade-panel.visible { opacity: 1; transform: translateY(0); }

.field-err { display: none; align-items: center; gap: 4px; color: #ef4444; font-size: 0.7rem; font-weight: 600; margin-top: 4px; }
.field-err.show { display: flex; }

.auth-input-wrap {
    border: 1.5px solid #e2e8f0; background: #f8fafc; height: 50px;
    border-radius: 0.75rem; display: flex; align-items: center; padding: 0 0.875rem;
    transition: border-color .2s, box-shadow .2s, background .2s; position: relative;
}
.auth-input-wrap:focus-within { border-color: #0f5249; background: #fff; box-shadow: 0 0 0 3px rgba(15,82,73,0.10); }
.auth-input-wrap input { flex: 1; background: transparent; border: none; outline: none; font-size: 0.875rem; color: #1e293b; font-family: 'Plus Jakarta Sans', sans-serif; }
.auth-input-wrap .toggle-pwd { background: none; border: none; cursor: pointer; padding: 0 2px; color: #94a3b8; transition: color .2s; }
.auth-input-wrap .toggle-pwd:hover { color: #475569; }

.method-card { border: 2px solid #e2e8f0; border-radius: 14px; padding: 16px; cursor: pointer; transition: all 0.22s ease; display: flex; align-items: center; gap: 14px; }
.method-card:hover { border-color: #0f5249; background: #f0fdf9; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(15,82,73,0.08); }
.method-card.selected { border-color: #0f5249; background: #f0fdf9; box-shadow: 0 0 0 3px rgba(15,82,73,0.12); }
.method-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.method-icon-email { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.method-icon-sms   { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.method-title  { font-weight: 700; font-size: 13px; color: #0f172a; }
.method-desc   { font-size: 11px; color: #64748b; margin-top: 2px; }
.method-masked { font-size: 12px; color: #0f5249; font-weight: 600; margin-top: 3px; }

.auth-header-icon { background: linear-gradient(135deg, #f0fdf9, #d1fae5); }

.step-icon { font-size: 11px; }

@media (max-width: 1024px) {
    .main-card { grid-template-columns: 1fr; max-width: 500px; }
    .image-panel { display: none; }
    .form-panel { max-height: none; padding: 2rem 1.75rem; }
}
@media (max-width: 480px) {
    .form-panel { padding: 1.5rem 1.25rem; }
}
