/* Extracted from index.html inline styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}
/* Left branding panel */
.brand-panel {
    width: 45%;
    min-height: 100vh;
    background: linear-gradient(145deg, var(--color-primary-dark) 0%, var(--color-primary-mid) 40%, var(--color-primary) 75%, var(--color-secondary) 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 56px;
    overflow: hidden;
    flex-shrink: 0;
}
.orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    animation: floatOrb linear infinite;
}
.orb-1 { width: 320px; height: 320px; top: -80px; right: -80px; animation-duration: 18s; }
.orb-2 { width: 200px; height: 200px; bottom: 40px; left: -60px; animation-duration: 22s; animation-delay: -6s; }
.orb-3 { width: 120px; height: 120px; top: 50%; left: 30%; animation-duration: 15s; animation-delay: -3s; background: rgba(255,255,255,0.05); }
.orb-4 { width: 60px; height: 60px; top: 25%; right: 20%; animation-duration: 10s; animation-delay: -8s; background: rgba(255,255,255,0.12); }
@keyframes floatOrb {
    0%   { transform: translate(0,0) rotate(0deg) scale(1); }
    33%  { transform: translate(20px,-30px) rotate(120deg) scale(1.05); }
    66%  { transform: translate(-15px,15px) rotate(240deg) scale(0.95); }
    100% { transform: translate(0,0) rotate(360deg) scale(1); }
}
.brand-logo { font-size: 2.6rem; font-weight: 800; color: #fff; letter-spacing: -1px; margin-bottom: 8px; position: relative; z-index: 1; text-decoration: none; display: inline-block; }
.brand-logo:hover { color: #e0e7ff; text-decoration: none; }
.brand-logo i { color: #a5b4fc; margin-right: 10px; }
.brand-tagline { color: rgba(255,255,255,0.75); font-size: 1.1rem; font-weight: 400; margin-bottom: 48px; position: relative; z-index: 1; }
.brand-features { position: relative; z-index: 1; }
.brand-feature { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 28px; }
.brand-feature-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: #c7d2fe; flex-shrink: 0; }
.brand-feature-text h6 { color: #fff; font-weight: 600; font-size: 0.95rem; margin-bottom: 3px; }
.brand-feature-text p { color: rgba(255,255,255,0.6); font-size: 0.8rem; line-height: 1.5; }
.brand-footer { position: absolute; bottom: 28px; left: 56px; color: rgba(255,255,255,0.4); font-size: 0.75rem; z-index: 1; }
/* Right form panel */
.form-panel { flex: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f8f9ff; padding: 40px 24px; overflow-y: auto; }
.auth-box { width: 100%; max-width: 440px; }
.auth-tabs { display: flex; background: #eff0ff; border-radius: 14px; padding: 4px; margin-bottom: 32px; }
.auth-tab { flex: 1; text-align: center; padding: 10px 0; font-weight: 600; font-size: 0.92rem; cursor: pointer; border-radius: 11px; transition: all 0.25s ease; color: var(--color-text-muted); border: none; background: transparent; }
.auth-tab.active { color: #4338ca; background: #fff; box-shadow: 0 1px 6px rgba(67,56,202,0.15); }
.auth-panel-title { font-size: 1.65rem; font-weight: 800; color: #111827; margin-bottom: 6px; }
.auth-panel-sub { color: var(--color-text-muted); font-size: 0.88rem; margin-bottom: 28px; }
.field-group { margin-bottom: 18px; }
.field-group label { display: block; font-size: 0.82rem; font-weight: 600; color: #374151; margin-bottom: 6px; letter-spacing: 0.02em; }
.input-wrap { position: relative; }
.input-wrap .field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 0.9rem; pointer-events: none; transition: color 0.2s; }
.field-input { width: 100%; padding: 12px 14px 12px 40px; border: 1.5px solid #e5e7eb; border-radius: 10px; font-size: 0.93rem; color: #111827; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; outline: none; font-family: inherit; }
.field-input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }
.field-input.has-toggle { padding-right: 46px; }
.toggle-password { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #9ca3af; font-size: 0.9rem; cursor: pointer; padding: 4px; transition: color 0.2s; }
.toggle-password:hover { color: #6366f1; }
select.field-input { padding-left: 40px; appearance: none; cursor: pointer; }
.remember-row { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; margin-top: -4px; }
.remember-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: #6366f1; cursor: pointer; }
.remember-row label { font-size: 0.83rem; color: var(--color-text-muted); cursor: pointer; user-select: none; }
.btn-auth { width: 100%; padding: 13px; border-radius: 10px; font-size: 0.95rem; font-weight: 700; border: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; letter-spacing: 0.01em; }
.btn-auth-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; box-shadow: 0 4px 18px rgba(79,70,229,0.35); }
.btn-auth-primary:hover { background: linear-gradient(135deg, #4338ca, #6d28d9); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(79,70,229,0.45); }
.btn-auth-success { background: linear-gradient(135deg, #059669, #0d9488); color: #fff; box-shadow: 0 4px 18px rgba(5,150,105,0.35); }
.btn-auth-success:hover { background: linear-gradient(135deg, #047857, #0f766e); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(5,150,105,0.45); }
.switch-link { text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--color-text-muted); }
.switch-link a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.switch-link a:hover { text-decoration: underline; }
.auth-panel { animation: panelIn 0.3s ease; }
.auth-panel.d-none { display: none !important; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* Back to Home link */
.back-home {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--color-text-muted); font-size: 0.82rem; font-weight: 500;
    text-decoration: none; margin-bottom: 18px;
    padding: 6px 10px; border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.back-home:hover { background: #eff0ff; color: var(--color-primary); }
@media (max-width: 768px) {
    body { flex-direction: column; overflow: auto; }
    .brand-panel { width: 100%; min-height: auto; padding: 32px 28px 24px; }
    .orb-1 { width: 160px; height: 160px; top: -40px; right: -40px; }
    .orb-2, .orb-3 { display: none; }
    .brand-features { display: none; }
    .brand-tagline { margin-bottom: 0; }
    .brand-footer { display: none; }
    .form-panel { min-height: auto; }
}
/* SweetAlert2 overrides for auth error dialogs */
.swal2-popup { border-radius: 18px !important; }
.swal2-title { font-size: 1.2rem !important; font-weight: 700 !important; color: #111827 !important; }
.swal2-html-container { margin-top: 6px !important; }
.swal2-actions { gap: 10px !important; flex-wrap: wrap; }
.swal2-actions button { border-radius: 9px !important; font-size: .88rem !important; font-weight: 600 !important; padding: 10px 20px !important; }
.swal2-icon { margin-bottom: 10px !important; margin-top: 16px !important; }