/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    color: #0f172a;
    background: #f8fafc;
}

/* ── Full-screen split wrapper ── */
.auth-root {
    display: flex;
    min-height: 100vh;
}

/* ════════════════════════════════
   LEFT — Hero Panel
   ════════════════════════════════ */
.auth-hero {
    flex: 0 0 52%;
    background: linear-gradient(145deg, #0c1a4e 0%, #1d4ed8 40%, #2563eb 70%, #1e40af 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 64px;
    position: relative;
    overflow: hidden;
}

/* Decorative blobs */
.auth-hero::before {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -120px;
    right: -120px;
    pointer-events: none;
}

.auth-hero::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    bottom: -80px;
    left: -60px;
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: 140px;
    right: 40px;
    pointer-events: none;
}

/* Brand */
.hero-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 56px;
    position: relative;
    z-index: 1;
}

.hero-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.hero-brand-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1;
}

.hero-brand-tagline {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 3px;
}

/* Headline */
.hero-headline {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.hero-headline h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin: 0 0 14px;
}

.hero-headline p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    margin: 0;
    max-width: 380px;
}

/* Feature list */
.hero-features {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
}

.hero-feat-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}

/* Footer */
.hero-footer {
    position: absolute;
    bottom: 28px;
    left: 64px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    z-index: 1;
}

/* ════════════════════════════════
   RIGHT — Form Panel
   ════════════════════════════════ */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: #f8fafc;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 22px;
    border: 1px solid #e8eaf0;
    box-shadow: 0 8px 40px rgba(37, 99, 235, 0.08), 0 2px 8px rgba(0,0,0,0.04);
    padding: 44px 40px;
}

/* Card header */
.auth-card-header {
    margin-bottom: 32px;
    text-align: center;
}

.auth-card-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    margin-bottom: 24px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.auth-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}

.auth-card-sub {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Form fields */
.auth-field {
    margin-bottom: 18px;
}

.auth-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.auth-input {
    width: 100%;
    height: 46px;
    padding: 0 44px 0 42px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.9375rem;
    color: #0f172a;
    background: #fafafa;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-input::placeholder { color: #c4c9d4; }

.auth-input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.12);
}

.auth-input.input-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.auth-pwd-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    color: #9ca3af;
    font-size: 1rem;
    line-height: 1;
    transition: color .15s;
    z-index: 2;
}

.auth-pwd-toggle:hover { color: #2563eb; }

/* Validation */
.auth-validation {
    font-size: 0.775rem;
    color: #ef4444;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Alert */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: #b91c1c;
}

.auth-alert.auth-alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #1e40af;
}

.auth-alert i { flex-shrink: 0; margin-top: 1px; }

/* Row: remember + forgot */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 6px 0 24px;
}

.auth-forgot {
    font-size: 0.825rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}

.auth-forgot:hover { color: #1d4ed8; text-decoration: underline; }

/* Submit button */
.btn-auth-submit {
    width: 100%;
    height: 48px;
    background: linear-gradient(100deg, #1d4ed8 0%, #2563eb 60%, #1e40af 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .18s ease, transform .15s ease, box-shadow .18s ease;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-auth-submit:hover {
    opacity: 0.93;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.42);
}

.btn-auth-submit:active {
    transform: translateY(0);
    opacity: 1;
}

/* Card footer */
.auth-card-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 0.78rem;
    color: #94a3b8;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .auth-hero { display: none; }
    .auth-form-panel { background: linear-gradient(145deg, #0c1a4e 0%, #1d4ed8 50%, #1e40af 100%); }
    .auth-card { box-shadow: 0 12px 48px rgba(0,0,0,0.18); }
}

@media (max-width: 480px) {
    .auth-form-panel { padding: 24px 16px; }
    .auth-card { padding: 32px 24px; border-radius: 18px; }
}
