/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --primary: #3b82f6;
    --primary-rgb: 59, 130, 246;
    --primary-hover: #2563eb;
    --primary-light: #eff6ff;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --transition: 0.15s ease;
}

html { font-size: 14px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* ===== AUTH PAGES ===== */
.auth-body { background: #0f172a; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }

.auth-container {
    display: flex;
    max-width: 960px;
    width: 100%;
    min-height: 580px;
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.auth-card {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header { text-align: center; margin-bottom: 32px; }
.auth-logo {
    width: 48px; height: 48px;
    background: var(--primary);
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px;
    margin-bottom: 20px;
}
.auth-header h1 { font-size: 26px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.auth-header p { color: var(--text-muted); font-size: 14px; }

.auth-form { width: 100%; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.label-hint { font-weight: 400; color: var(--text-muted); font-size: 12px; }

.input-icon {
    position: relative;
}
.input-icon i {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 14px;
}
.input-icon input {
    width: 100%; padding: 12px 14px 12px 42px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px; font-family: inherit;
    background: var(--bg);
    transition: var(--transition);
}
.input-icon input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
    background: #fff;
}

.btn-primary-full {
    width: 100%; padding: 10px 16px;
    background: var(--primary);
    color: #fff; border: none; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; font-family: inherit;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: var(--transition);
}
.btn-primary-full:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-primary-full.pin-save-btn {
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.22);
}
.btn-primary-full.pin-save-btn:hover {
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.28);
}

.auth-footer { text-align: center; margin-top: 28px; }
.auth-footer p { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.auth-footer a { font-weight: 600; }

.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--text-muted); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.auth-side {
    flex: 1;
    background: var(--surface);
    border-left: 1px solid var(--border);
    color: var(--text);
    padding: 48px 40px;
    display: flex; align-items: center; justify-content: center;
}
.auth-side-content h2 { font-size: 24px; font-weight: 600; margin-bottom: 12px; line-height: 1.3; color: var(--text); }
.auth-side-content p { color: var(--text-secondary); font-size: 14px; margin-bottom: 32px; line-height: 1.7; }

.auth-features { display: flex; flex-direction: column; gap: 14px; }
.auth-feature { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text); }
.auth-feature i { color: #34d399; font-size: 16px; }

/* OTP */
.otp-inputs { display: flex; gap: 10px; justify-content: center; }
.otp-digit {
    width: 52px; height: 60px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center; font-size: 24px; font-weight: 700;
    font-family: inherit;
    background: var(--bg);
    transition: var(--transition);
}
.otp-digit:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
    background: #fff;
}

.validation-errors { background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; color: #dc2626; font-size: 13px; }
.field-error { color: #dc2626; font-size: 12px; margin-top: 4px; display: block; }

@media (max-width: 768px) {
    .auth-container { flex-direction: column; max-width: 440px; }
    .auth-side { display: none; }
    .auth-card { padding: 32px 24px; }
}
