/* ── Override common.css body for this standalone page ── */
body {
    background: #fff;
    overflow-x: hidden;
}

/* ── Root: full-viewport split ── */
.login-root {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ════════════════════════════════════════
   LEFT PANEL
   ════════════════════════════════════════ */
.login-panel {
    flex: 0 0 56%;
    background: #0F172A;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Subtle dot grid */
.login-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* ── Animated glow blobs ── */
.lp-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.lp-glow-1 {
    width: 660px; height: 660px;
    background: radial-gradient(circle, rgba(59,130,246,0.22) 0%, transparent 68%);
    top: -220px; right: -180px;
    animation: glowFloat 10s ease-in-out infinite;
}
.lp-glow-2 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 68%);
    bottom: -120px; left: -100px;
    animation: glowFloat 13s ease-in-out infinite reverse;
}
.lp-glow-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(14,165,233,0.14) 0%, transparent 68%);
    top: 42%; left: 28%;
    animation: glowFloat 8s ease-in-out infinite 3s;
}
@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(-18px, 22px) scale(1.04); }
    66%       { transform: translate(16px, -12px) scale(0.97); }
}

/* ── Panel content ── */
.lp-content {
    position: relative;
    z-index: 1;
    padding: 3.5rem 4rem;
    width: 100%;
    max-width: 600px;
}

/* Brand */
.lp-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 4.5rem;
}
.lp-brand-icon {
    width: 44px; height: 44px;
    background: var(--accent);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #fff; flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(59,130,246,0.55);
}
.lp-brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #F1F5F9;
    letter-spacing: -0.3px;
}

/* Hero */
.lp-hero { margin-bottom: 2.75rem; }
.lp-headline {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -1.4px;
    margin-bottom: 1rem;
    background: linear-gradient(140deg, #F1F5F9 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lp-tagline {
    font-size: 0.935rem;
    color: #64748B;
    line-height: 1.65;
}

/* Stats glass bar */
.lp-stats {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px;
    padding: 1.2rem 1.75rem;
    margin-bottom: 2.25rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.lp-stat         { flex: 1; text-align: center; }
.lp-stat-value   { font-size: 1.45rem; font-weight: 700; color: #F1F5F9; letter-spacing: -0.5px; line-height: 1.1; }
.lp-stat-label   { font-size: 0.7rem; color: #64748B; margin-top: 0.25rem; font-weight: 400; }
.lp-stat-sep     { width: 1px; height: 36px; background: rgba(255,255,255,0.1); flex-shrink: 0; margin: 0 0.5rem; }

/* Features */
.lp-features { display: flex; flex-direction: column; gap: 0.7rem; }
.lp-feat {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.855rem;
    color: #94A3B8;
}
.lp-feat i { color: var(--accent); font-size: 0.875rem; flex-shrink: 0; }

/* ════════════════════════════════════════
   RIGHT PANEL — LOGIN FORM
   ════════════════════════════════════════ */
.login-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 3rem 2rem;
    position: relative;
}

.login-form-wrap {
    width: 100%;
    max-width: 360px;
    animation: formFadeIn 0.42s cubic-bezier(.22,.68,0,1.2);
}
@keyframes formFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-hd        { margin-bottom: 2rem; }
.login-title     { font-size: 1.55rem; font-weight: 700; color: var(--text); letter-spacing: -0.55px; margin-bottom: 0.35rem; }
.login-sub       { font-size: 0.875rem; color: var(--text-3); }

/* Alerts */
.login-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.835rem;
    margin-bottom: 1.25rem;
}
.login-alert-error   { background: var(--danger-bg);  color: var(--danger); }
.login-alert-success { background: var(--success-bg); color: var(--success); }

/* Password toggle */
.pw-toggle {
    position: absolute;
    right: 0.7rem;
    bottom: 0.62rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-3);
    font-size: 0.9rem;
    padding: 0;
    line-height: 1;
    transition: color var(--transition);
}
.pw-toggle:hover { color: var(--text-2); }

/* Sign-in button */
.btn-signin {
    width: 100%;
    padding: 0.72rem 1rem;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    box-shadow: 0 2px 10px rgba(59,130,246,0.38);
    transition: background var(--transition), box-shadow var(--transition), transform 0.12s ease;
    letter-spacing: -0.1px;
}
.btn-signin:hover   { background: var(--accent-hover); box-shadow: 0 4px 16px rgba(59,130,246,0.48); transform: translateY(-1px); }
.btn-signin:active  { transform: translateY(0); }
.btn-signin:disabled { background: #BFDBFE; box-shadow: none; cursor: not-allowed; transform: none; }

/* Spinner inside button */
.signin-spin {
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.login-footer {
    position: absolute;
    bottom: 1.75rem;
    font-size: 0.73rem;
    color: var(--text-3);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .login-panel  { flex: 0 0 46%; }
    .lp-content   { padding: 2.5rem 2.5rem; }
    .lp-headline  { font-size: 2rem; }
}
@media (max-width: 680px) {
    .login-panel  { display: none; }
    .login-side   { min-height: 100vh; padding: 2.5rem 1.5rem; justify-content: center; }
    .login-footer { position: relative; bottom: auto; margin-top: 2.5rem; }
}
