/* ============================================================
   13. LOGIN PAGE
   ============================================================ */
#login-section, #akses-section { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--landing-bg); display: flex; justify-content: center; align-items: center; z-index: 1000; padding: 20px; overflow: hidden; }
.login-orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: 0.35; }
.orb-1 { width: 350px; height: 350px; background: var(--primary); top: -50px; left: -50px; }
.orb-2 { width: 300px; height: 300px; background: var(--primary-mid); bottom: -40px; right: -40px; }
.login-card { background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px); padding: 42px 32px; border-radius: 24px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35); width: 100%; max-width: 400px; text-align: center; position: relative; z-index: 1; border: 1px solid rgba(255, 255, 255, 0.4); box-sizing: border-box; }
.login-logo { width: 75px; height: 75px; margin-bottom: 16px; border-radius: 50%; box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.15); background: white; padding: 4px; border: 2px solid var(--border-color); object-fit: cover; }
.login-card h1 { color: var(--text-main); font-size: 24px; font-weight: 800; margin: 0 0 6px 0; letter-spacing: -0.5px; }
.login-card p.subtitle { color: var(--text-muted); margin: 0 0 25px 0; font-size: 13px; font-weight: 500; }
.input-group-modern { position: relative; margin-bottom: 16px; text-align: left; }
.input-group-modern span.icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 15px; color: #94a3b8; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.input-group-modern input { background-color: var(--bg-body); border: 1.5px solid var(--border-color); padding: 14px 16px 14px 45px; border-radius: 14px; width: 100%; font-size: 14px; color: #1e293b; margin: 0; transition: all 0.2s ease; }
.input-group-modern input:focus { border-color: var(--primary); background-color: #ffffff; box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12); }
.btn-toggle-pass { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: transparent; border: none; cursor: pointer; color: #94a3b8; font-size: 14px; padding: 0; width: auto !important; margin: 0 !important; display: flex; align-items: center; justify-content: center; box-shadow: none !important;}
.btn-toggle-pass:hover { color: var(--primary); }
.login-extra { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 22px; color: var(--text-muted); font-weight: 500; }
.login-extra label { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.login-extra input[type="checkbox"] { width: 16px; height: 16px; margin: 0; cursor: pointer; accent-color: var(--primary); }
.login-extra a { color: var(--primary); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.btn-masuk { background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%); border-radius: 14px; padding: 14px; font-size: 15px; font-weight: 700; width: 100%; color: white; border: none; cursor: pointer; box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3); transition: all 0.2s ease; }
.btn-masuk:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(var(--primary-rgb), 0.4); }
.footer-text { font-size: 12px; color: #94a3b8; margin-top: 22px; margin-bottom: 0; font-weight: 600; }
#network-banner { background: var(--danger); color: white; text-align: center; padding: 8px; font-size: 13px; font-weight: 700; position: sticky; top: 0; z-index: 1050; display: none; }
#network-banner.show { display: block; }
.btn-masuk:disabled { opacity: 0.8; cursor: not-allowed; filter: brightness(0.9); }
.spinner-loader { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: #ffffff; animation: spin 0.8s linear infinite; margin-right: 8px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Login Google & pendaftaran akun --- */
.login-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: #94a3b8; font-size: 12px; font-weight: 600; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin: 0; padding: 13px; background: #ffffff; color: #334155; border: 1.5px solid var(--border-color); border-radius: 14px; font-size: 14px; font-weight: 700; box-shadow: none; cursor: pointer; }
.btn-google:hover { background: #f8fafc; border-color: #cbd5e1; transform: none; box-shadow: none; }
.btn-google:disabled { opacity: 0.7; cursor: not-allowed; }
.login-daftar { margin: 16px 0 0; font-size: 13px; color: var(--text-muted); }
.login-daftar a { color: var(--primary); font-weight: 700; text-decoration: none; }
.login-daftar a:hover { text-decoration: underline; }
.spinner-loader.dark { border-color: rgba(51, 65, 85, 0.25); border-top-color: #334155; }

.akses-card { max-width: 480px; max-height: 92vh; overflow-y: auto; }
.akses-ikon { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.akses-email { margin: 0 0 16px; font-size: 12px; color: var(--text-muted); word-break: break-all; }
.akses-catatan { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--primary-light); border: 1px solid var(--primary-soft2); color: var(--primary-deep); font-size: 13px; line-height: 1.55; text-align: left; overflow-wrap: anywhere; }
.akses-aksi { display: flex; flex-direction: column; gap: 10px; }
.akses-aksi button, .btn-akses-sekunder { margin: 0; }
.btn-akses-sekunder { width: 100%; padding: 12px; background: #f1f5f9; color: #475569; border: none; border-radius: 14px; font-size: 14px; font-weight: 700; box-shadow: none; cursor: pointer; margin-top: 10px; }
.akses-aksi .btn-akses-sekunder { margin-top: 0; }
.btn-akses-sekunder:hover { background: #e2e8f0; transform: none; box-shadow: none; }
#form-registrasi label { display: block; font-size: 13px; font-weight: 700; color: var(--text-main); }
.reg-wajib { color: var(--danger); }
.reg-role { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 8px 0 16px; }
.reg-bantuan { font-size: 12px; color: var(--text-muted, #64748b); line-height: 1.5; margin: 4px 0 8px; }
.reg-role-opt, .reg-chk { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.reg-role-opt { padding: 12px 14px; border: 1.5px solid var(--border-color); border-radius: 12px; font-weight: 700; }
.reg-role-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.reg-role-opt input, .reg-chk input { width: 18px; height: 18px; margin: 0; padding: 0; flex-shrink: 0; accent-color: var(--primary); }
.reg-chk { font-weight: 500 !important; font-size: 13px !important; }
.reg-chk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 8px 0 16px; }
.reg-error { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--danger-light); border: 1px solid #fecaca; color: #991b1b; font-size: 13px; font-weight: 600; }
@media (max-width: 480px) { .reg-chk-grid { grid-template-columns: 1fr; } }
body.dark-mode .btn-google { background: #0f172a; color: #e2e8f0; border-color: #334155; }
body.dark-mode .btn-akses-sekunder { background: #334155; color: #e2e8f0; }
body.dark-mode .akses-catatan { background: var(--primary-deep); border-color: var(--primary-hover); color: var(--primary-soft); }
body.dark-mode .reg-error { background: #7f1d1d; border-color: #b91c1c; color: #fecaca; }
body.dark-mode .reg-role-opt { border-color: #334155; }
body.dark-mode .reg-role-opt:has(input:checked) { background: var(--primary-deep); }
