/* ============================================================
   IniPondok — Auth (Login/Register) Styles
   Self-contained. Mengambil design token dari :root di landing.css
   namun didefinisikan ulang di sini agar dapat berdiri sendiri.
   ============================================================ */

:root {
    --auth-primary-50:  #eef8f2;
    --auth-primary-100: #d6efe0;
    --auth-primary-500: #3f8f63;
    --auth-primary-600: #2e7a51;
    --auth-primary-700: #255e42;
    --auth-primary-800: #1d4a35;
    --auth-primary-900: #153a28;

    --auth-bg:    #f6f7f4;
    --auth-ink:   #0f172a;
    --auth-muted: #64748b;
    --auth-line:  #e5e7eb;

    --auth-radius-lg: 22px;
    --auth-radius-md: 14px;
    --auth-radius-sm: 10px;

    --auth-shadow-card: 0 1px 2px rgba(15,23,42,.04), 0 24px 48px -20px rgba(15,23,42,.16);
    --auth-shadow-panel: 0 20px 60px -20px rgba(15,23,42,.35);
}

* { box-sizing: border-box; }

body.auth-body {
    margin: 0;
    min-height: 100vh;
    background: var(--auth-bg);
    color: var(--auth-ink);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ============================================================
   SHELL — 2 panel
   ============================================================ */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
}

/* ============================================================
   PANEL BRAND (KIRI) — forest green solid, selaras landing
   Layout: header (logo) · showcase visual di tengah · footer (copyright)
   ============================================================ */
.auth-brand {
    position: relative;
    overflow: hidden;
    /* Padding generous + simetris supaya konten tidak menempel ke tepi.
       clamp() membuatnya menyesuaikan lebar viewport secara otomatis. */
    padding: clamp(40px, 5vw, 72px) clamp(48px, 6vw, 88px);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 36px;
    /* Forest green solid — tidak ada gradasi */
    background: var(--auth-primary-800);
}

/* Dekorasi halus: grid pattern samar (tidak ada glow/gradient) */
.auth-brand__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: 44px 44px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.auth-brand > *:not(.auth-brand__grid) { position: relative; z-index: 1; }

/* Bungkus tiap section panel kiri agar lebarnya terbatas dan rata kiri
   konsisten antara header, content, dan footer. */
.auth-brand > .auth-brand__header,
.auth-brand > .auth-brand__content,
.auth-brand > .auth-brand__foot {
    width: 100%;
    max-width: 560px;
    margin-right: auto;
}

/* ---- Header: logo + eyebrow ---- */
.auth-brand__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.auth-brand__logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}
.auth-brand__logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    padding: 5px;
    backdrop-filter: blur(10px);
}
.auth-brand__logo strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.auth-brand__logo small {
    display: block;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
    margin-top: 3px;
}
.auth-brand__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,.9);
    backdrop-filter: blur(8px);
}
.auth-brand__badge .dot {
    width: 6px;
    height: 6px;
    background: #a7f3d0;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(167,243,208,.25);
    animation: authPulse 2s ease-in-out infinite;
}
@keyframes authPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .5; }
}

/* ---- Content tengah: headline + showcase ---- */
.auth-brand__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: auto 0; /* vertikal tengah antar header & footer */
}

.auth-brand__headline {
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 700;
    margin: 0;
    color: #fff;
}
.auth-brand__headline em {
    font-family: 'Amiri', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    color: #c9ebd7;
}

.auth-brand__lede {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,.75);
    margin: 0;
    max-width: 460px;
}

/* ---- Showcase: 2 stat card + feature list ---- */
.auth-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 4px;
}
.auth-stat {
    padding: 18px 18px 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--auth-radius-md);
}
.auth-stat__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
    margin-bottom: 10px;
}
.auth-stat__label i {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: rgba(167,243,208,.14);
    color: #a7f3d0;
    font-size: 12px;
    letter-spacing: normal;
}
.auth-stat__value {
    font-family: 'Amiri', Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.01em;
}
/* Modifier untuk nilai berupa teks panjang (mis. tahun ajaran 2025/2026)
   agar baseline tetap sejajar dengan stat angka di sebelahnya. */
.auth-stat__value--text {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 22px;
    letter-spacing: -0.005em;
    line-height: 1.1;
}
.auth-stat__hint {
    font-size: 12px;
    color: #a7f3d0;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---- Feature list: poin nilai utama, bukan data dashboard ---- */
.auth-features {
    margin-top: 4px;
    display: grid;
    gap: 12px;
    padding: 20px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--auth-radius-md);
}
.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.auth-feature__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(167,243,208,.12);
    border: 1px solid rgba(167,243,208,.18);
    color: #a7f3d0;
    font-size: 16px;
}
.auth-feature__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.auth-feature__title {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.005em;
}
.auth-feature__desc {
    font-size: 12.5px;
    color: rgba(255,255,255,.65);
    line-height: 1.45;
}

/* ---- Footer brand ---- */
.auth-brand__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 12.5px;
    color: rgba(255,255,255,.55);
}
.auth-brand__foot a {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    transition: color .2s ease;
}
.auth-brand__foot a:hover { color: #fff; }
.auth-brand__foot__links {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}
.auth-brand__foot__links a {
    position: relative;
    padding-bottom: 2px;
}
.auth-brand__foot__links a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: currentColor;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity .2s ease, transform .2s ease;
}
.auth-brand__foot__links a:hover::after { opacity: .6; transform: translateY(0); }

/* ============================================================
   PANEL FORM (KANAN)
   ============================================================ */
.auth-form-wrap {
    padding: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    /* Center penuh: card + legal diperlakukan sebagai satu stack di tengah. */
    justify-content: center;
    align-items: center;
    gap: 16px;
    background: var(--auth-bg);
}

/* Pastikan card & legal punya lebar konsisten supaya kolom kanan rapi. */
.auth-form-wrap > .auth-card,
.auth-form-wrap > .auth-legal {
    width: 100%;
    max-width: 440px;
}

/* Saat konten lebih tinggi dari viewport, fallback ke top-aligned
   supaya tidak ada bagian card yang terpotong. */
@media (max-height: 720px) {
    .auth-form-wrap { justify-content: flex-start; }
}

.auth-mobile-brand {
    display: none;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--auth-ink);
    margin-bottom: 8px;
}
.auth-mobile-brand img { width: 36px; height: 36px; object-fit: contain; }
.auth-mobile-brand strong {
    display: block; font-size: 16px; font-weight: 700; line-height: 1.1;
}
.auth-mobile-brand small {
    display: block; font-size: 10px; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--auth-muted); margin-top: 2px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid var(--auth-line);
    border-radius: var(--auth-radius-lg);
    padding: 40px 36px;
    box-shadow: var(--auth-shadow-card);
}

.auth-card__head { margin-bottom: 24px; }

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--auth-primary-50);
    color: var(--auth-primary-800);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 14px;
}
.auth-eyebrow i { font-size: 13px; }

.auth-card__head h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 8px;
    color: var(--auth-ink);
}
.auth-card__head p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--auth-muted);
    margin: 0;
}

/* ---- Alerts ---- */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 18px;
}
.auth-alert i { flex-shrink: 0; font-size: 18px; margin-top: 1px; }
.auth-alert strong { display: block; font-weight: 700; margin-bottom: 2px; }
.auth-alert span { display: block; }
.auth-alert--error {
    background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
}
.auth-alert--error i { color: #dc2626; }
.auth-alert--success {
    background: var(--auth-primary-50); border: 1px solid #bbf7d0; color: var(--auth-primary-800);
}
.auth-alert--success i { color: var(--auth-primary-700); }
.auth-alert--info {
    background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a;
}
.auth-alert--info i { color: #2563eb; }

/* ---- Info box: password default (struktur lebih rapi) ----
   Layout: ikon kiri — (judul) (deskripsi) (chip contoh) di kolom kanan */
.auth-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    margin-bottom: 22px; /* Beri napas sebelum form */
}
.auth-info + .auth-form,
.auth-info + form { margin-top: 4px; }
.auth-info__icon {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: grid; place-items: center;
    border-radius: 8px;
    background: rgba(37,99,235,.12);
    color: #2563eb;
    font-size: 16px;
    margin-top: 1px;
}
.auth-info__body { flex: 1; min-width: 0; }
.auth-info__title {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.3;
}
.auth-info__desc {
    display: block;
    font-size: 12.5px;
    line-height: 1.55;
    color: #1e40af;
    margin-top: 2px;
}
.auth-info__example {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: #1e40af;
}
.auth-info__example .auth-kbd {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #bfdbfe;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    font-size: 12px;
    font-weight: 600;
    color: #1e3a8a;
    letter-spacing: 0.02em;
}
.auth-alert + .auth-alert,
.auth-alert + form,
.auth-card__head + .auth-alert { margin-top: 0; }

/* ---- Form ---- */
.auth-form { display: grid; gap: 16px; }

.auth-honeypot {
    position: absolute;
    left: -10000px; top: auto;
    width: 1px; height: 1px; overflow: hidden;
}

.auth-field { display: grid; gap: 6px; }
.auth-field__head {
    display: flex; justify-content: space-between; align-items: baseline;
}
.auth-field label {
    font-size: 13px; font-weight: 600;
    color: var(--auth-ink); letter-spacing: -0.005em;
}

.auth-input {
    position: relative;
    display: flex; align-items: center;
    background: #fff;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.auth-input:focus-within {
    border-color: var(--auth-primary-500);
    box-shadow: 0 0 0 4px rgba(63,143,99,.14);
}
.auth-input__icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--auth-muted);
    font-size: 17px;
    pointer-events: none;
    transition: color .18s ease;
}
.auth-input:focus-within .auth-input__icon { color: var(--auth-primary-700); }

.auth-input input {
    flex: 1; width: 100%;
    padding: 13px 14px 13px 44px;
    border: 0; background: transparent;
    font: inherit; font-size: 14.5px;
    color: var(--auth-ink);
    outline: none;
    border-radius: 12px;
}
.auth-input input::placeholder { color: #94a3b8; }
.auth-input input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: var(--auth-ink);
    border-radius: 12px;
}

.auth-input__toggle {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border: 0; background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
    border-radius: 8px;
    font-size: 17px;
    transition: background .15s ease, color .15s ease;
}
.auth-input__toggle:hover { background: var(--auth-primary-50); color: var(--auth-primary-700); }
.auth-input__toggle:focus-visible {
    outline: 2px solid var(--auth-primary-500);
    outline-offset: 2px;
}

.auth-field.is-invalid .auth-input {
    border-color: #dc2626;
    background: #fef2f2;
}
.auth-field.is-invalid .auth-input:focus-within {
    box-shadow: 0 0 0 4px rgba(220,38,38,.12);
}
.auth-field.is-invalid .auth-input__icon { color: #dc2626; }

.auth-field__error {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; color: #b91c1c; margin-top: 2px;
}

/* ---- Row (remember) ---- */
.auth-row {
    display: flex; justify-content: space-between;
    align-items: center; gap: 12px;
    margin-top: 4px;
}

/* ---- Custom checkbox ---- */
.auth-check {
    display: inline-flex; align-items: center; gap: 10px;
    cursor: pointer;
    font-size: 13.5px; color: var(--auth-ink);
    user-select: none;
}
.auth-check input {
    position: absolute; opacity: 0; pointer-events: none;
}
.auth-check__box {
    width: 20px; height: 20px; flex-shrink: 0;
    display: grid; place-items: center;
    border: 1.5px solid var(--auth-line);
    border-radius: 6px;
    background: #fff;
    color: transparent;
    font-size: 13px;
    transition: all .18s ease;
}
.auth-check input:checked + .auth-check__box {
    background: var(--auth-primary-700);
    border-color: var(--auth-primary-700);
    color: #fff;
}
.auth-check input:focus-visible + .auth-check__box {
    box-shadow: 0 0 0 4px rgba(63,143,99,.18);
}

.auth-link {
    font-size: 13px; font-weight: 600;
    color: var(--auth-primary-700);
    text-decoration: none;
}
.auth-link:hover { color: var(--auth-primary-800); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Submit button ---- */
.auth-submit {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    border: 0;
    border-radius: 12px;
    background: var(--auth-primary-700);
    color: #fff;
    cursor: pointer;
    margin-top: 6px;
    transition: transform .1s ease, box-shadow .2s ease, background .2s ease;
}
.auth-submit:hover:not(:disabled) {
    background: var(--auth-primary-800);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(29,74,53,.5);
}
.auth-submit:focus-visible {
    outline: 2px solid var(--auth-primary-500);
    outline-offset: 2px;
}
.auth-submit:disabled, .auth-submit.is-loading {
    opacity: .7; cursor: not-allowed; transform: none;
}
.auth-submit.is-loading .auth-submit__icon {
    animation: authSpin .8s linear infinite;
}
@keyframes authSpin { to { transform: rotate(360deg); } }

/* ---- Footer card ---- */
.auth-card__foot {
    margin-top: 24px; padding-top: 20px;
    border-top: 1px solid var(--auth-line);
    text-align: center;
}
.auth-card__foot p {
    margin: 0; font-size: 13.5px; color: var(--auth-muted);
}

.auth-legal {
    font-size: 12px;
    color: var(--auth-muted);
    text-align: center;
    max-width: 440px;
    line-height: 1.55;
    margin: 0;
}
.auth-legal a { color: var(--auth-primary-700); text-decoration: none; }
.auth-legal a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-mobile-brand { display: inline-flex; }
    .auth-form-wrap { padding: 32px 20px; min-height: 100vh; }
}

@media (max-width: 480px) {
    .auth-card { padding: 28px 22px; border-radius: 18px; }
    .auth-card__head h1 { font-size: 22px; }
    .auth-input input { font-size: 16px; /* hindari zoom iOS */ }
}

/* Brand headline kecilkan di viewport tengah */
@media (min-width: 961px) and (max-width: 1199px) {
    .auth-brand {
        padding: 40px 44px;
        gap: 28px;
    }
    .auth-brand > .auth-brand__header,
    .auth-brand > .auth-brand__content,
    .auth-brand > .auth-brand__foot {
        max-width: 100%;
    }
    .auth-brand__headline { font-size: 32px; }
    .auth-brand__lede  { font-size: 14px; }
    .auth-stat__value  { font-size: 26px; }
    .auth-showcase     { gap: 10px; }
    .auth-stat         { padding: 14px; }
    .auth-features     { padding: 16px; gap: 10px; }
}

/* Layar sangat lebar — tambahkan napas ekstra dan geser konten sedikit
   ke tengah panel agar tidak menggantung di sisi kiri. */
@media (min-width: 1440px) {
    .auth-brand {
        padding: 80px clamp(88px, 8vw, 120px);
    }
    .auth-brand > .auth-brand__header,
    .auth-brand > .auth-brand__content,
    .auth-brand > .auth-brand__foot {
        max-width: 600px;
    }
}
