/* Halaman login dan ganti password awal */
:root {
    --a-primary: #2563eb;
    --a-primary-dark: #4338ca;
    --a-ink: #0f172a;
    --a-muted: #64748b;
    --a-line: #e2e8f0;
}
* { box-sizing: border-box; }
.auth-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
    color: var(--a-ink);
    background: #f8fafc;
}
.auth-shell { display: flex; min-height: 100vh; }

.auth-hero {
    position: relative;
    flex: 1 1 46%;
    display: flex;
    align-items: center;
    padding: 56px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(145deg, #0b1437 0%, #1e3a8a 55%, #4338ca 100%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.orb-a { width: 340px; height: 340px; background: #38bdf8; top: -90px; right: -80px; }
.orb-b { width: 300px; height: 300px; background: #a78bfa; bottom: -100px; left: -60px; }
.hero-inner { position: relative; z-index: 1; max-width: 460px; }
.hero-brand { display: flex; align-items: center; font-size: 22px; font-weight: 700; letter-spacing: .3px; margin-bottom: 44px; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; margin-right: 12px; border-radius: 12px;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
}
.hero-inner h1 { font-size: 36px; line-height: 1.2; font-weight: 700; margin: 0 0 14px; }
.hero-inner p { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .8); margin: 0 0 28px; }
.hero-points { list-style: none; margin: 0; padding: 0; }
.hero-points li { margin-bottom: 12px; color: rgba(255, 255, 255, .9); }
.hero-points i { color: #7dd3fc; margin-right: 10px; }

.auth-main {
    flex: 1 1 54%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 32px 20px;
}
.auth-card {
    width: 100%; max-width: 420px;
    background: #fff; border-radius: 20px; padding: 40px 36px;
    border: 1px solid var(--a-line);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, .18);
}
.auth-card h2 { font-size: 26px; font-weight: 700; margin: 0 0 6px; }
.auth-card .sub { color: var(--a-muted); margin: 0 0 26px; font-size: 14px; }

.auth-alert {
    display: flex; align-items: flex-start;
    background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
    border-radius: 12px; padding: 11px 14px; margin-bottom: 18px; font-size: 14px;
}
.auth-alert i { margin: 3px 10px 0 0; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: #334155; }
.input-wrap { position: relative; }
.input-wrap > i.lead {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none;
}
.input-wrap input {
    width: 100%; height: 48px; padding: 0 44px 0 42px; font-size: 15px;
    border: 1px solid #cbd5e1; border-radius: 12px; background: #f8fafc; color: var(--a-ink);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.input-wrap input:focus {
    outline: none; background: #fff; border-color: var(--a-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}
.toggle-pass {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border: 0; background: transparent; color: #94a3b8; cursor: pointer; border-radius: 8px;
}
.toggle-pass:hover { color: var(--a-primary); background: #eff6ff; }

.btn-auth {
    width: 100%; height: 48px; margin-top: 6px; border: 0; border-radius: 12px; cursor: pointer;
    font-size: 15px; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, var(--a-primary), var(--a-primary-dark));
    box-shadow: 0 10px 20px -8px rgba(37, 99, 235, .6);
    transition: transform .1s, box-shadow .15s, opacity .15s;
}
.btn-auth:hover { box-shadow: 0 14px 24px -8px rgba(37, 99, 235, .7); }
.btn-auth:active { transform: translateY(1px); }
.btn-auth[disabled] { opacity: .7; cursor: progress; }

.auth-note { margin-top: 20px; font-size: 12.5px; color: var(--a-muted); text-align: center; line-height: 1.5; }
.auth-note i { margin-right: 4px; color: #16a34a; }
.auth-copy { margin: 22px 0 0; font-size: 12px; color: #94a3b8; }
.auth-flash .alert {
    background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; border-radius: 12px;
    padding: 10px 16px; margin-top: 16px; font-size: 14px;
}
.auth-flash .close { display: none; }

.pw-hint { font-size: 12px; color: var(--a-muted); margin-top: 6px; }

/* SweetAlert2 */
.swal2-popup { border-radius: 20px; font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif; padding: 1.6em 1.4em 1.8em; }
.swal2-title { font-size: 1.35rem; font-weight: 700; color: #0f172a; }
.swal2-html-container { color: #475569; }
.swal2-styled.swal2-confirm { border-radius: 12px; padding: .6em 1.8em; box-shadow: 0 10px 20px -8px rgba(37, 99, 235, .6); }
.swal2-timer-progress-bar { background: rgba(37, 99, 235, .55); }

@media (max-width: 900px) {
    .auth-shell { flex-direction: column; }
    .auth-hero { flex: 0 0 auto; padding: 32px 24px; }
    .hero-brand { margin-bottom: 18px; }
    .hero-inner h1 { font-size: 26px; }
    .hero-points { display: none; }
    .auth-main { padding: 24px 16px 32px; }
    .auth-card { padding: 30px 22px; margin-top: -28px; position: relative; z-index: 2; }
}
