/* ============================================
   Auth Pages — Split-screen layout
   ============================================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --success: #22c55e;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-900);
    min-height: 100vh;
    color: var(--gray-800);
    line-height: 1.6;
}

/* Split layout */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left hero panel */
.auth-hero {
    position: relative;
    width: 55%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 48px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
}
.auth-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.auth-hero-media video,
.auth-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.auth-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.10) 100%);
    z-index: 1;
}
.auth-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 520px;
}
.auth-hero-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.auth-hero-content p {
    font-size: 1.1rem;
    opacity: .9;
    line-height: 1.6;
}

/* Right form panel */
.auth-form-side {
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #fff;
    overflow-y: auto;
}
.card {
    width: 100%;
    max-width: 420px;
}
.auth-brand {
    margin-bottom: 24px;
}
.auth-brand img.site-logo {
    max-height: 48px;
    width: auto;
}
.card h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}
.card .subtitle {
    color: var(--gray-500);
    margin-bottom: 24px;
    font-size: .95rem;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: .9rem;
}
.alert p { margin: 0; }
.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Form */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-weight: 600;
    font-size: .875rem;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.form-group label .optional {
    font-weight: 400;
    color: var(--gray-400);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color .15s;
    background: #fff;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.otp-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: .5em;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.btn-block {
    width: 100%;
}
.btn-sm {
    padding: 6px 14px;
    font-size: .85rem;
    background: rgba(255,255,255,.15);
    color: #fff;
    border-radius: 8px;
}
.btn-sm:hover {
    background: rgba(255,255,255,.25);
}

/* Links */
.auth-links {
    margin-top: 24px;
    text-align: center;
    color: var(--gray-500);
    font-size: .9rem;
}
.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.auth-links a:hover {
    text-decoration: underline;
}

/* OTP hint */
.otp-hint {
    color: var(--primary);
    font-weight: 600;
}

/* Honeypot */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-wrapper {
        flex-direction: column;
    }
    .auth-hero {
        width: 100%;
        min-height: 35vh;
        padding: 32px 24px;
    }
    .auth-hero-content h2 {
        font-size: 1.75rem;
    }
    .auth-form-side {
        width: 100%;
        padding: 32px 24px;
    }
}
