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

body {
    min-height: 100vh;
    display: flex;
    font-family: 'Manrope', sans-serif;
    background: #f5f6fa;
}

/* ── Left panel ───────────────────────────────────────────── */
.auth-left {
    flex: 0 0 52%;
    background: linear-gradient(145deg, #3730a3 0%, #4f46e5 45%, #7c3aed 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 64px;
    position: relative;
    overflow: hidden;
}
.auth-left::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 340px; height: 340px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
}
.auth-left::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 260px; height: 260px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.left-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 56px; }
.left-logo svg { width: 48px; height: 48px; flex-shrink: 0; }
.left-logo-text { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.4px; }
.left-logo-text em { color: #fde68a; font-style: normal; }
.left-logo-sub { font-size: 10px; color: rgba(255,255,255,0.6); font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; margin-top: 2px; }

.left-headline { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -0.6px; line-height: 1.25; margin-bottom: 10px; }
.left-sub { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 40px; line-height: 1.6; }

.left-bullets { display: flex; flex-direction: column; gap: 18px; margin-bottom: 48px; }
.left-bullet { display: flex; align-items: flex-start; gap: 14px; }
.left-bullet-icon {
    width: 24px; height: 24px; flex-shrink: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
    color: #fde68a; font-size: 13px; font-weight: 700; line-height: 1;
}
.left-bullet-text { font-size: 14px; color: rgba(255,255,255,0.9); line-height: 1.5; }
.left-bullet-text strong { color: #fff; font-weight: 700; }

.left-divider { height: 1px; background: rgba(255,255,255,0.15); margin-bottom: 28px; }
.left-trust { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.6; }
.left-trust strong { color: rgba(255,255,255,0.9); font-weight: 600; }

/* ── Right panel ──────────────────────────────────────────── */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: #fff;
}

.form-wrap { width: 100%; max-width: 380px; }

.form-logo { display: none; align-items: center; gap: 10px; margin-bottom: 28px; }
.form-logo svg { width: 36px; height: 36px; }
.form-logo-text { font-size: 18px; font-weight: 800; letter-spacing: -0.4px; }
.form-logo-text em { color: #4f46e5; font-style: normal; }

.form-title { font-size: 22px; font-weight: 800; color: #1e1b4b; letter-spacing: -0.5px; margin-bottom: 6px; }
.form-sub { font-size: 13px; color: #64748b; margin-bottom: 28px; }

.field { margin-bottom: 16px; }
label { display: block; font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 6px; letter-spacing: 0.3px; text-transform: uppercase; }
input { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1.5px solid #e2e8f0; background: #f8fafc; color: #1e1b4b; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 500; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
input:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.1); background: #fff; }

.hint { font-size: 11px; color: #94a3b8; margin-top: 4px; }

.btn-primary { width: 100%; padding: 13px; border-radius: 10px; border: none; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; transition: opacity 0.2s; margin-top: 8px; letter-spacing: 0.3px; }
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.error { background: #fef2f2; border: 1.5px solid #fca5a5; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #dc2626; font-weight: 600; margin-bottom: 16px; }
.success { background: #ecfdf5; border: 1.5px solid #6ee7b7; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #065f46; font-weight: 600; margin-bottom: 16px; }

.free-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f0fdf4; border: 1.5px solid #bbf7d0; border-radius: 8px;
    padding: 7px 12px; font-size: 12px; font-weight: 700; color: #059669;
    margin-bottom: 24px;
}

.form-footer { text-align: center; margin-top: 16px; font-size: 13px; color: #64748b; }
.form-footer a { color: #4f46e5; font-weight: 600; text-decoration: none; }
.form-footer a:hover { text-decoration: underline; }

/* Loading overlay */
.overlay { display: none; position: fixed; inset: 0; background: rgba(238,241,251,0.85); backdrop-filter: blur(4px); z-index: 100; align-items: center; justify-content: center; flex-direction: column; gap: 16px; }
.overlay.show { display: flex; }
.spinner { width: 44px; height: 44px; border: 4px solid rgba(79,70,229,0.2); border-top-color: #4f46e5; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.overlay-text { font-size: 14px; font-weight: 600; color: #4f46e5; }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    body { flex-direction: column; background: #fff; }
    .auth-left { display: none; }
    .auth-right { padding: 56px 24px 48px; align-items: flex-start; }
    .form-logo { display: flex; }
    .form-wrap { max-width: 100%; }
}
