/* ==========================================================================
   MetroSehat — Auth (Login)
   ========================================================================== */

:root {
    --blue-50:  #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --sky-500:  #0ea5e9;
    --teal-500: #14b6a6;
    --green-500:#10b981;
    --red-500:  #ef4444;
    --red-50:   #fef2f2;
    --ink:      #0f172a;
    --ink-soft: #334155;
    --muted:    #64748b;
    --line:     #e6ebf2;
    --line-soft:#eef2f7;
    --bg:       #ffffff;
    --grad: linear-gradient(120deg, var(--blue-600), var(--sky-500));
    --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow: 0 12px 30px rgba(15,23,42,.08);
    --shadow-blue: 0 16px 40px rgba(37,99,235,.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.auth-page {
    font-family: var(--font-body);
    color: var(--ink-soft);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ---------- Showcase (kiri) ---------- */
.auth-showcase {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 45%, #0c4a6e 100%);
    color: #fff;
    padding: 48px;
}

.auth-showcase__bg { position: absolute; inset: 0; pointer-events: none; }

.auth-blob {
    position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45;
}
.auth-blob--1 { width: 320px; height: 320px; background: var(--blue-500); top: -80px; right: -60px; }
.auth-blob--2 { width: 280px; height: 280px; background: var(--sky-500); bottom: -40px; left: -40px; opacity: .35; }

.auth-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 20%, transparent 100%);
}

.auth-showcase__inner {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; gap: 40px;
    min-height: 100%;
    max-width: 480px;
}

.auth-brand {
    display: inline-flex; align-items: center; gap: 14px; color: #fff;
}
.auth-brand__text {
    font-family: var(--font-head); font-weight: 800; font-size: 1.35rem;
    display: flex; flex-direction: column; gap: 4px; letter-spacing: -.03em;
}
.auth-brand__text small {
    font-family: var(--font-body); font-weight: 500; font-size: .68rem;
    letter-spacing: .08em; text-transform: uppercase; opacity: .75;
}

.auth-showcase__copy h1 {
    font-family: var(--font-head); font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800; line-height: 1.2; color: #fff; letter-spacing: -.03em;
    margin-bottom: 14px;
}
.auth-showcase__copy p { font-size: 1rem; line-height: 1.65; opacity: .85; max-width: 420px; }

.auth-showcase__cards {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    margin-top: auto;
}

.auth-mini-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.auth-mini-card--wide { grid-column: 1 / -1; }
.auth-mini-card__label {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
    opacity: .7; display: block; margin-bottom: 6px;
}
.auth-mini-card strong {
    font-family: var(--font-head); font-size: 1.75rem; font-weight: 800;
    color: #fff; display: block; line-height: 1;
}
.auth-mini-card small { font-size: .78rem; opacity: .65; margin-top: 6px; display: block; }

.auth-mini-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.auth-tag {
    font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 999px;
    background: rgba(16,185,129,.2); color: #6ee7b7; border: 1px solid rgba(16,185,129,.35);
}

/* ---------- Form (kanan) ---------- */
.auth-main {
    display: flex; align-items: center; justify-content: center;
    padding: 40px 24px;
    background:
        radial-gradient(ellipse 80% 50% at 100% 0%, rgba(37,99,235,.06), transparent),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(14,165,233,.05), transparent),
        #fafbfd;
}

.auth-main__inner { width: 100%; max-width: 420px; }

.auth-back {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .88rem; font-weight: 500; color: var(--muted);
    margin-bottom: 28px; transition: color .2s;
}
.auth-back:hover { color: var(--blue-600); }

.auth-card {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow);
}

.auth-card__badge {
    display: inline-block;
    font-family: var(--font-head); font-size: .68rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--blue-700); background: var(--blue-50);
    border: 1px solid var(--blue-100);
    padding: 5px 12px; border-radius: 999px;
    margin-bottom: 16px;
}
.auth-card__head h2 {
    font-family: var(--font-head); font-size: 1.65rem; font-weight: 800;
    color: var(--ink); letter-spacing: -.03em; margin-bottom: 8px;
}
.auth-card__head p { font-size: .92rem; color: var(--muted); margin-bottom: 24px; }

.auth-alert {
    background: var(--red-50); color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 12px; padding: 12px 14px;
    font-size: .88rem; margin-bottom: 20px;
}
.auth-alert--warn {
    background: #fffbeb; color: #92400e;
    border-color: #fde68a;
}
.auth-alert--warn a { color: #2563eb; font-weight: 600; }

.auth-field { margin-bottom: 18px; }
.auth-field label {
    display: block; font-size: .84rem; font-weight: 600;
    color: var(--ink); margin-bottom: 8px;
}

.auth-input-wrap {
    position: relative; display: flex; align-items: center;
}
.auth-input-wrap > svg:first-child {
    position: absolute; left: 14px; color: var(--muted); pointer-events: none;
}
.auth-input-wrap input {
    width: 100%; font-family: var(--font-body); font-size: .95rem;
    color: var(--ink); background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 44px 13px 44px;
    transition: border-color .2s, box-shadow .2s;
}
.auth-input-wrap input:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.auth-input-wrap input::placeholder { color: #94a3b8; }

.auth-toggle-pw {
    position: absolute; right: 10px;
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border: none; background: none; color: var(--muted);
    cursor: pointer; border-radius: 8px;
    transition: color .2s, background .2s;
}
.auth-toggle-pw:hover { color: var(--blue-600); background: var(--blue-50); }

.auth-form__row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 22px; flex-wrap: wrap;
}
.auth-check {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .86rem; color: var(--ink-soft); cursor: pointer;
}
.auth-check input { width: 16px; height: 16px; accent-color: var(--blue-600); }
.auth-link { font-size: .86rem; font-weight: 600; color: var(--blue-600); }
.auth-link:hover { text-decoration: underline; }

.auth-submit {
    width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-head); font-weight: 700; font-size: 1rem;
    color: #fff; background: var(--grad);
    border: none; border-radius: 999px;
    padding: 14px 24px; cursor: pointer;
    box-shadow: var(--shadow-blue);
    transition: transform .2s, box-shadow .2s;
}
.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(37,99,235,.35);
}
.auth-submit:active { transform: translateY(0); }

.auth-demo {
    margin-top: 22px; padding-top: 20px;
    border-top: 1px dashed var(--line);
    font-size: .82rem; color: var(--muted); text-align: center;
}
.auth-demo strong { color: var(--ink-soft); }

.auth-foot {
    margin-top: 28px; text-align: center;
    font-size: .78rem; color: var(--muted);
}

@media (max-width: 960px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-showcase { display: none; }
    .auth-main { min-height: 100vh; }
}

@media (max-width: 480px) {
    .auth-card { padding: 28px 22px; }
}
