/* ═══════════════════════════════════════════════════════════════════
   LOGIN SPLIT — self-contained theme (nilai warna disamakan app.css)
   ═══════════════════════════════════════════════════════════════════ */
:root {
    --bg-main:#0c0e12;
    --bg-card:#181b20;
    --bg-hover:#22262e;
    --border:#282d35;
    --text-main:#f0f3f6;
    --text-muted:#8a94a0;
    --sidebar-hover:rgba(255,255,255,0.06);
    --pill-active:#2f5be0;
}
html.light-mode {
    --bg-main:#cfe1f7;
    --bg-card:#ffffff;
    --bg-hover:#e4edf9;
    --border:#b7d0ec;
    --text-main:#0f172a;
    --text-muted:#64748b;
    --sidebar-hover:rgba(47,91,224,0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-card);
    color: var(--text-main);
    display: flex;
    transition: background 0.2s ease, color 0.2s ease;
}
a { color: inherit; text-decoration: none; }
.ms { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: 20px; display: inline-block; line-height: 1; }
.ms-sm { font-size: 16px !important; }
:focus-visible { outline: 2px solid var(--pill-active); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── SPLIT LAYOUT ── */
.login-split { display: flex; width: 100%; min-height: 100vh; }
.login-left {
    flex: 7;                       /* 70% lebar layar */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 40px 64px;        /* ruang untuk footer */
    background: var(--bg-card);
    transition: background 0.2s ease;
}
.login-right {
    flex: 3;                       /* 30% lebar layar */
    background: var(--bg-main);
    border-left: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: background 0.2s ease, border-color 0.2s ease;
}

/* ── FORM WRAPPER ── */
.login-form-wrap { width: 100%; max-width: 420px; }
.login-title { font-size: 26px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; letter-spacing: -0.5px; }
.login-subtitle { font-size: 13.5px; color: var(--text-muted); margin-bottom: 26px; }

.login-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── FORM FIELDS ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }
.form-label .required { color: #ef4444; }
.input-wrap { position: relative; display: flex; align-items: center; }
.form-input {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: all 0.15s ease;
}
.form-input::placeholder { color: var(--text-muted); opacity: 0.7; }
.form-input:focus { border-color: var(--pill-active); box-shadow: 0 0 0 3px rgba(47, 91, 224, 0.15); }
.input-wrap .form-input { padding-right: 44px; }
.toggle-pass {
    position: absolute;
    right: 6px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.toggle-pass:hover { color: var(--text-main); background: var(--sidebar-hover); }

/* ── SUBMIT BUTTON ── */
.btn-submit {
    width: 100%;
    background: var(--pill-active);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(47, 91, 224, 0.28);
    transition: all 0.15s ease;
}
.btn-submit:hover { background: #3a67e8; }
.btn-submit:active { background: var(--pill-active); }

/* ── RIGHT PANEL (Branding) ── */
.branding-content { text-align: center; color: var(--text-main); padding: 32px 20px; z-index: 2; position: relative; }
.branding-logo {
    width: 56px;
    height: 56px;
    background: var(--pill-active);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(47, 91, 224, 0.3);
}
.branding-logo img { width: 32px; height: 32px; }
.branding-title { font-size: 26px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.5px; color: var(--text-main); }
.branding-tagline { font-size: 13px; color: var(--text-muted); line-height: 1.6; max-width: 230px; margin: 0 auto; }

/* Footer copyright di dasar panel form */
.login-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    opacity: 0.75;
}

/* ── Floating Theme Toggle ── */
.theme-toggle-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 100;
}
.theme-toggle-fab:hover { color: var(--text-main); background: var(--bg-hover); }
.theme-toggle-fab .ms { font-size: 22px; }

/* ── RESPONSIVE (urut dari layar besar ke kecil) ── */
@media (max-width: 1200px) {
    .branding-title { font-size: 22px; }
    .branding-tagline { font-size: 12px; max-width: 200px; }
}
@media (max-width: 900px) {
    .login-right { display: none; }
    .login-left { padding: 24px 24px 64px; }
    .login-title { font-size: 26px; }
}
@media (max-width: 480px) {
    .login-left { padding: 20px 20px 64px; }
    .login-title { font-size: 24px; }
    .theme-toggle-fab { bottom: 16px; right: 16px; width: 44px; height: 44px; }
}
