@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Auth-specific styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    background: #f4f6fb;
}

/* ---- Split Layout ---- */
.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.auth-hero {
    width: 45%;
    background: linear-gradient(135deg, #003f88 0%, #00509d 60%, #0070c9 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    position: relative;
    overflow: hidden;
}

.auth-hero::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    top: -100px; right: -100px;
}
.auth-hero::after {
    content: '';
    position: absolute;
    width: 250px; height: 250px;
    border-radius: 50%;
    background: rgba(253,197,0,0.10);
    bottom: -60px; left: -60px;
}

.auth-hero-inner { position: relative; z-index: 1; text-align: center; max-width: 360px; }

.auth-hero-logo {
    width: 72px; height: 72px;
    background: rgba(255,255,255,0.15);
    border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 28px;
    backdrop-filter: blur(8px);
    font-size: 32px;
    color: white;
}

.auth-hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.auth-hero p {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
}

.auth-hero-features {
    margin-top: 40px;
    list-style: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.auth-hero-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}
.auth-hero-features li i {
    width: 30px; height: 30px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

/* ---- Form Panel ---- */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
    background: white;
}

.auth-form-inner {
    width: 100%;
    max-width: 400px;
}

.auth-form-header { margin-bottom: 32px; }
.auth-form-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
    margin-bottom: 6px;
}
.auth-form-header p { font-size: 14px; color: #6b7280; }

/* Form elements */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-control-auth {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    background: #ffffff;
    transition: all 0.25s ease;
    outline: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02) inset;
}
.form-control-auth:focus {
    border-color: #00509d;
    box-shadow: 0 0 0 4px rgba(0,80,157,0.1);
}
.form-control-auth::placeholder { color: #94a3b8; font-weight: 400; }

.input-wrap { position: relative; }
.input-icon-left {
    position: absolute;
    left: 13px; top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 15px;
    pointer-events: none;
}
.input-icon-left ~ .form-control-auth { padding-left: 40px; }

.input-icon-right {
    position: absolute;
    right: 13px; top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 15px;
    cursor: pointer;
    padding: 4px;
    border: none;
    background: transparent;
}
.input-icon-right:hover { color: #374151; }
.input-icon-right ~ .form-control-auth { padding-right: 40px; }

.form-error {
    display: none;
    font-size: 12px;
    color: #ef4444;
    margin-top: 5px;
}

/* Auth button */
.btn-auth {
    width: 100%;
    padding: 14px 20px;
    background: #00509d;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 6px rgba(0,80,157,0.15);
}
.btn-auth:hover { 
    background: #003f88; 
    transform: translateY(-2px); 
    box-shadow: 0 8px 16px rgba(0,80,157,0.25); 
}
.btn-auth:active { transform: translateY(0); }
.btn-auth:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }

/* Links */
.auth-link { color: #00509d; font-weight: 600; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

.auth-divider {
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
    margin: 24px 0 0;
}

/* Error/success banners */
.alert-auth {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-auth.error { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }
.alert-auth.success { background: #f0fdf4; color: #16a34a; border: 1px solid #86efac; }
.alert-auth.hidden { display: none; }

/* Bottom link */
.auth-bottom-link { text-align: center; margin-top: 28px; font-size: 14px; color: #6b7280; }

/* Mobile: stack vertically */
@media (max-width: 991.98px) {
    .auth-container { flex-direction: column; }
    .auth-hero { width: 100%; padding: 36px 28px; min-height: auto; }
    .auth-hero h1 { font-size: 24px; }
    .auth-hero-features { display: none; }
    .auth-form-panel { padding: 32px 24px; align-items: flex-start; }
    .auth-form-inner { max-width: 100%; }
}
