/* ============================================
   Bayi Portal — Auth Pages Stylesheet
   Split-screen, indigo dealer theme
   ============================================ */

:root {
    --auth-primary: #1a237e;
    --auth-primary-dark: #0d1642;
    --auth-primary-light: #e8eaf6;
    --auth-primary-glow: rgba(26, 35, 126, 0.15);
    --auth-secondary: #283593;
    --auth-accent: #f59e0b;
    --auth-success: #10b981;
    --auth-danger: #ef4444;
    --auth-warning: #f59e0b;
    --auth-gray-50: #f8fafc;
    --auth-gray-100: #f1f5f9;
    --auth-gray-200: #e2e8f0;
    --auth-gray-300: #cbd5e1;
    --auth-gray-400: #94a3b8;
    --auth-gray-500: #64748b;
    --auth-gray-600: #475569;
    --auth-gray-700: #334155;
    --auth-gray-800: #1e293b;
    --auth-gray-900: #0f172a;
    --auth-white: #ffffff;
    --auth-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --auth-radius: 12px;
    --auth-radius-lg: 16px;
    --auth-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

.auth-body {
    font-family: var(--auth-font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--auth-gray-800);
    background: var(--auth-gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   SPLIT LAYOUT
   ============================================ */
.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #303f9f 100%);
    color: var(--auth-white);
}

.auth-brand-bg {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.2) 0%, transparent 40%);
}
.auth-brand-bg::before,
.auth-brand-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.auth-brand-bg::before {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -80px;
    animation: floatBubble 20s ease-in-out infinite;
}
.auth-brand-bg::after {
    width: 200px;
    height: 200px;
    bottom: -30px;
    left: -50px;
    animation: floatBubble 15s ease-in-out infinite reverse;
}

@keyframes floatBubble {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 30px) scale(1.02); }
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 48px;
}
.auth-logo-img {
    height: 44px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.auth-brand-hero { margin-bottom: 48px; }
.auth-brand-hero h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.auth-brand-hero h1 strong {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-brand-hero p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
    max-width: 400px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-accent);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}
.brand-badge .material-icons-outlined { font-size: 18px; }

.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.brand-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--auth-radius);
    backdrop-filter: blur(10px);
    transition: var(--auth-transition);
}
.brand-feature:hover {
    background: rgba(255,255,255,0.12);
    transform: translateX(4px);
}
.brand-feature .material-icons-outlined {
    font-size: 24px;
    color: var(--auth-accent);
    flex-shrink: 0;
}
.brand-feature strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-white);
    margin-bottom: 2px;
}
.brand-feature span {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.auth-brand-footer {
    position: absolute;
    bottom: 32px;
    left: 48px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ============================================
   FORM SIDE
   ============================================ */
.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: var(--auth-white);
    overflow-y: auto;
}

.auth-form-container {
    width: 100%;
    max-width: 440px;
    animation: fadeSlideUp 0.6s ease-out;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 32px;
}
.auth-mobile-logo a {
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.auth-mobile-logo .logo-car { color: var(--auth-primary); }
.auth-mobile-logo .logo-smart { color: var(--auth-gray-400); }
.auth-mobile-logo .logo-go { color: var(--auth-accent); }

/* ============================================
   ALERTS
   ============================================ */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--auth-radius);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    animation: alertSlide 0.4s ease-out;
    position: relative;
}
@keyframes alertSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.auth-alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.auth-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.auth-alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.auth-alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.auth-alert-icon { font-size: 20px; flex-shrink: 0; }
.auth-alert-text { flex: 1; line-height: 1.4; }
.auth-alert-close {
    background: none; border: none; font-size: 20px; cursor: pointer;
    opacity: 0.5; padding: 0 4px; line-height: 1; color: inherit; transition: opacity 0.2s;
}
.auth-alert-close:hover { opacity: 1; }

/* ============================================
   FORM HEADER
   ============================================ */
.auth-form-header {
    text-align: center;
    margin-bottom: 32px;
}
.auth-form-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--auth-gray-900);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.auth-form-header p {
    font-size: 15px;
    color: var(--auth-gray-500);
    line-height: 1.5;
}

.auth-icon-circle {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--auth-primary-light);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.auth-icon-circle .material-icons-outlined {
    font-size: 32px; color: var(--auth-primary);
}

/* ============================================
   FORM FIELDS
   ============================================ */
.form-field { margin-bottom: 20px; }
.form-field label {
    display: block; margin-bottom: 6px;
    font-size: 13px; font-weight: 600; color: var(--auth-gray-700);
    transition: color 0.2s;
}
.label-hint { font-weight: 400; color: var(--auth-gray-400); }

.field-input {
    position: relative; display: flex; align-items: center;
}
.field-icon {
    position: absolute; left: 14px; font-size: 20px;
    color: var(--auth-gray-400); pointer-events: none; z-index: 1;
    transition: color 0.3s;
}
.field-input input,
.field-input select,
.field-input textarea {
    width: 100%;
    padding: 13px 44px 13px 44px;
    border: 1.5px solid var(--auth-gray-200);
    border-radius: var(--auth-radius);
    font-family: var(--auth-font);
    font-size: 14px;
    color: var(--auth-gray-800);
    background: var(--auth-white);
    transition: var(--auth-transition);
    outline: none;
}
.field-input input::placeholder { color: var(--auth-gray-400); }
.field-input input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px var(--auth-primary-glow);
}
.form-field:has(input:focus) label { color: var(--auth-primary); }
.form-field:has(input:focus) .field-icon { color: var(--auth-primary); }

/* No icon variant */
.field-input.no-icon input,
.field-input.no-icon select,
.field-input.no-icon textarea {
    padding-left: 14px;
}

/* Validation states */
.form-field.is-valid .field-input input,
.form-field.is-valid .field-textarea { border-color: var(--auth-success); }
.form-field.is-invalid .field-input input,
.form-field.is-invalid .field-textarea {
    border-color: var(--auth-danger);
    box-shadow: 0 0 0 4px rgba(239,68,68,0.1);
}

.field-status {
    position: absolute; right: 14px; font-size: 20px;
    opacity: 0; transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.form-field.is-valid .field-status,
.form-field.is-invalid .field-status { opacity: 1; transform: scale(1); }
.form-field.is-valid .field-status { color: var(--auth-success); }
.form-field.is-invalid .field-status { color: var(--auth-danger); }

.field-error {
    display: block; font-size: 12px; color: var(--auth-danger);
    margin-top: 6px; opacity: 0; max-height: 0; overflow: hidden;
    transition: all 0.3s ease;
}
.form-field.is-invalid .field-error { opacity: 1; max-height: 40px; }

/* Toggle password */
.field-toggle-pw {
    position: absolute; right: 12px;
    background: none; border: none; color: var(--auth-gray-400);
    cursor: pointer; padding: 4px; display: flex; align-items: center;
    z-index: 2; transition: color 0.2s; border-radius: 6px;
}
.field-toggle-pw:hover { color: var(--auth-gray-600); background: var(--auth-gray-100); }
.field-toggle-pw .material-icons-outlined { font-size: 20px; }

.form-row-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

/* ============================================
   FORM OPTIONS
   ============================================ */
.form-options {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
}

.custom-checkbox {
    display: flex; align-items: flex-start; gap: 10px;
    cursor: pointer; font-size: 14px; color: var(--auth-gray-600);
    user-select: none; line-height: 1.4;
}
.custom-checkbox input[type="checkbox"] { display: none; }
.checkmark {
    width: 20px; height: 20px; min-width: 20px;
    border: 2px solid var(--auth-gray-300); border-radius: 6px;
    position: relative; transition: var(--auth-transition); margin-top: 1px;
}
.checkmark::after {
    content: ''; position: absolute; top: 2px; left: 6px;
    width: 5px; height: 10px; border: solid var(--auth-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.custom-checkbox input:checked + .checkmark {
    background: var(--auth-primary); border-color: var(--auth-primary);
}
.custom-checkbox input:checked + .checkmark::after { transform: rotate(45deg) scale(1); }
.custom-checkbox a { color: var(--auth-primary); text-decoration: none; font-weight: 500; }
.custom-checkbox a:hover { text-decoration: underline; }
.checkbox-label { flex: 1; font-size: 13px; line-height: 1.5; }

/* Textarea inside field-input */
.field-textarea {
    align-items: flex-start;
    border: 1.5px solid var(--auth-gray-200);
    border-radius: var(--auth-radius);
    background: var(--auth-white);
    transition: var(--auth-transition);
}
.field-textarea textarea {
    flex: 1; border: none; outline: none; font-family: var(--auth-font);
    font-size: 14px; color: var(--auth-gray-800); background: transparent;
    padding: 13px 14px 13px 0; resize: vertical; min-height: 60px; line-height: 1.5;
    width: 100%;
}
.field-textarea textarea::placeholder { color: var(--auth-gray-400); }
.field-textarea .field-icon { position: relative; left: auto; padding: 13px 0 0 14px; }
.field-textarea:focus-within {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px var(--auth-primary-glow);
}
.form-field:has(.field-textarea:focus-within) label { color: var(--auth-primary); }
.form-field:has(.field-textarea:focus-within) .field-icon { color: var(--auth-primary); }

.form-link {
    font-size: 13px; color: var(--auth-primary); text-decoration: none;
    font-weight: 500; transition: color 0.2s;
}
.form-link:hover { color: var(--auth-primary-dark); text-decoration: underline; }

/* ============================================
   BUTTONS
   ============================================ */
.auth-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px 24px;
    background: var(--auth-primary); color: var(--auth-white);
    border: none; border-radius: var(--auth-radius);
    font-family: var(--auth-font); font-size: 15px; font-weight: 600;
    cursor: pointer; transition: var(--auth-transition);
    position: relative; overflow: hidden;
}
.auth-btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0; transition: opacity 0.3s;
}
.auth-btn:hover {
    background: var(--auth-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,35,126,0.35);
}
.auth-btn:hover::before { opacity: 1; }
.auth-btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(26,35,126,0.25); }
.auth-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }

.auth-btn-loader { display: none; }
.auth-btn.is-loading .auth-btn-text { opacity: 0; }
.auth-btn.is-loading .auth-btn-loader { display: flex; position: absolute; }

.auth-btn-ghost {
    background: transparent; color: var(--auth-gray-600);
    border: 1.5px solid var(--auth-gray-200); width: auto;
    flex: 0 0 auto; white-space: nowrap;
}
.auth-btn-ghost:hover {
    background: var(--auth-gray-50); color: var(--auth-gray-800);
    border-color: var(--auth-gray-300); box-shadow: none; transform: none;
}

.auth-btn-outline {
    background: transparent; color: var(--auth-primary);
    border: 1.5px solid var(--auth-primary); width: auto;
    flex: 0 0 auto; white-space: nowrap;
}
.auth-btn-outline:hover {
    background: var(--auth-primary-light); color: var(--auth-primary-dark);
    box-shadow: none; transform: none;
}

/* ============================================
   DIVIDER
   ============================================ */
.auth-divider {
    display: flex; align-items: center; margin: 28px 0; gap: 16px;
}
.auth-divider::before,
.auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--auth-gray-200);
}
.auth-divider span {
    font-size: 13px; color: var(--auth-gray-400); font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.5px;
}

/* ============================================
   ALT ACTIONS
   ============================================ */
.auth-alt-actions { text-align: center; }
.auth-alt-actions p { font-size: 14px; color: var(--auth-gray-500); }
.auth-link {
    color: var(--auth-primary); font-weight: 600; text-decoration: none;
    transition: color 0.2s;
}
.auth-link:hover { color: var(--auth-primary-dark); text-decoration: underline; }

.auth-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--auth-gray-500); text-decoration: none;
    font-size: 14px; font-weight: 500; transition: color 0.2s;
}
.auth-back-link .material-icons-outlined { font-size: 18px; }
.auth-back-link:hover { color: var(--auth-primary); }

/* ============================================
   PASSWORD STRENGTH
   ============================================ */
.pw-strength { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.pw-strength-bar {
    flex: 1; height: 4px; background: var(--auth-gray-200);
    border-radius: 4px; overflow: hidden;
}
.pw-strength-fill {
    height: 100%; width: 0; border-radius: 4px;
    transition: width 0.4s ease, background 0.4s ease;
}
.pw-strength-fill[data-level="0"] { width: 0; }
.pw-strength-fill[data-level="1"] { width: 25%; background: var(--auth-danger); }
.pw-strength-fill[data-level="2"] { width: 50%; background: var(--auth-warning); }
.pw-strength-fill[data-level="3"] { width: 75%; background: #3b82f6; }
.pw-strength-fill[data-level="4"] { width: 100%; background: var(--auth-success); }
.pw-strength-text {
    font-size: 12px; font-weight: 600; min-width: 60px; text-align: right;
    transition: color 0.3s;
}

.pw-rules {
    list-style: none; margin-top: 12px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.pw-rules li {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--auth-gray-400); transition: color 0.3s;
}
.pw-rules li .material-icons-outlined { font-size: 14px; transition: var(--auth-transition); }
.pw-rules li.pass { color: var(--auth-success); }

/* Aliases for register form password elements */
.password-strength { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.strength-bar {
    flex: 1; height: 4px; background: var(--auth-gray-200);
    border-radius: 4px; overflow: hidden;
}
.strength-fill {
    height: 100%; width: 0; border-radius: 4px;
    transition: width 0.4s ease, background 0.4s ease;
}
.strength-fill[data-level="0"] { width: 0; }
.strength-fill[data-level="1"] { width: 25%; background: var(--auth-danger); }
.strength-fill[data-level="2"] { width: 50%; background: var(--auth-warning); }
.strength-fill[data-level="3"] { width: 75%; background: #3b82f6; }
.strength-fill[data-level="4"] { width: 100%; background: var(--auth-success); }
.strength-text {
    font-size: 12px; font-weight: 600; min-width: 60px; text-align: right;
    transition: color 0.3s;
}
.password-rules {
    list-style: none; margin-top: 12px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.password-rules .rule {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--auth-gray-400); transition: color 0.3s;
}
.password-rules .rule .material-icons-outlined { font-size: 14px; transition: var(--auth-transition); }
.password-rules .rule.pass { color: var(--auth-success); }

/* ============================================
   REGISTER STEPS
   ============================================ */
.form-progress {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-bottom: 32px;
}
.progress-step { display: flex; align-items: center; gap: 8px; position: relative; }
.step-num {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    background: var(--auth-gray-100); color: var(--auth-gray-400);
    border: 2px solid transparent; transition: var(--auth-transition);
}
.step-label {
    font-size: 13px; font-weight: 600; color: var(--auth-gray-400);
    transition: color 0.3s;
}
.progress-line {
    width: 48px; height: 2px; background: var(--auth-gray-200);
    margin: 0 12px; position: relative; overflow: hidden;
}
.progress-line::after {
    content: ''; position: absolute; inset: 0;
    background: var(--auth-primary);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-step.active .step-num {
    background: var(--auth-primary); color: var(--auth-white);
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px var(--auth-primary-glow);
}
.progress-step.active .step-label { color: var(--auth-primary); }
.progress-step.done .step-num {
    background: var(--auth-success); color: var(--auth-white);
    border-color: var(--auth-success);
}
.progress-step.done .step-label { color: var(--auth-success); }
.progress-line.filled::after { transform: scaleX(1); }

.form-step { display: none; animation: stepIn 0.4s ease-out; }
.form-step.active { display: block; }

@keyframes stepIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-step-actions { display: flex; gap: 12px; margin-top: 4px; }
.form-step-actions .auth-btn:last-child { flex: 1; }

.terms-check { margin-bottom: 24px; }
.terms-check span { font-size: 13px; line-height: 1.5; }

/* ============================================
   STATUS PAGES (pending, suspended, rejected)
   ============================================ */
.auth-status-page {
    text-align: center;
    padding: 40px 20px;
}
.auth-status-icon,
.status-icon {
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
}
.auth-status-icon .material-icons-outlined,
.status-icon .material-icons-outlined { font-size: 40px; }
.auth-status-icon.pending,
.status-icon.status-pending { background: #fffbeb; color: #f59e0b; }
.auth-status-icon.suspended,
.status-icon.status-suspended { background: #fef2f2; color: #ef4444; }
.auth-status-icon.rejected,
.status-icon.status-rejected { background: #fef2f2; color: #dc2626; }
.auth-status-page h1 {
    font-size: 24px; font-weight: 800; color: var(--auth-gray-900);
    margin-bottom: 12px;
}
.auth-status-page p {
    font-size: 15px; color: var(--auth-gray-500); line-height: 1.6;
    margin-bottom: 8px;
}
.status-note {
    font-size: 13px; color: var(--auth-gray-400); font-style: italic;
    margin-top: 8px;
}
.status-contact {
    margin-top: 20px; display: flex; justify-content: center; gap: 16px;
}
.status-contact a {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--auth-primary); text-decoration: none; font-weight: 600; font-size: 14px;
}
.status-contact a:hover { text-decoration: underline; }
.status-contact a .material-icons-outlined { font-size: 18px; }
.auth-status-page .auth-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .auth-brand { padding: 36px; }
    .auth-form-side { padding: 36px; }
    .auth-brand-hero h1 { font-size: 30px; }
}

@media (max-width: 768px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-form-side {
        padding: 24px; min-height: 100vh;
        background: linear-gradient(180deg, var(--auth-gray-50) 0%, var(--auth-white) 30%);
    }
    .auth-mobile-logo { display: block; }
    .auth-form-container { max-width: 400px; }
    .form-row-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .pw-rules { grid-template-columns: 1fr; }
    .form-options { flex-direction: column; gap: 12px; align-items: flex-start; }
}

@media (max-width: 480px) {
    .auth-form-side { padding: 20px 16px; }
    .auth-form-header h1 { font-size: 24px; }
    .form-step-actions { flex-direction: column-reverse; }
    .auth-btn-ghost,
    .auth-btn-outline { width: 100%; justify-content: center; }
    .password-rules { grid-template-columns: 1fr; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}
.form-field.shake { animation: shake 0.5s ease-in-out; }
.auth-alert.fade-out {
    opacity: 0; transform: translateY(-8px); transition: all 0.4s ease;
}
