/* Gaya halaman Identity Provider (layout: resources/views/identity/layout.blade.php). Token warna sama dengan admin-web. */
:root {
    --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);
    color-scheme: light;
    --bg: #f4f6fb;
    --surface: #ffffff;
    --surface-2: #f6f8fc;
    --surface-3: #eef1f7;
    --glass: rgba(255, 255, 255, .8);
    --border: #e4e8f0;
    --border-strong: #d3d9e5;
    --text: #0f172a;
    --text-2: #334155;
    --muted: #64748b;
    --accent: #4f46e5;
    --accent-2: #0ea5e9;
    --accent-soft: rgba(79, 70, 229, .1);
    --ring: rgba(79, 70, 229, .28);
    --danger: #dc2626;
    --danger-soft: rgba(220, 38, 38, .09);
    --ok: #059669;
    --ok-soft: rgba(5, 150, 105, .1);
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px -14px rgba(15, 23, 42, .18);
    --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .28);
}
:root[data-theme='dark'] {
    color-scheme: dark;
    --bg: #0a0e15;
    --surface: #111722;
    --surface-2: #151c29;
    --surface-3: #1b2433;
    --glass: rgba(17, 23, 34, .78);
    --border: #1f2939;
    --border-strong: #2b3749;
    --text: #e7ecf4;
    --text-2: #c3cddb;
    --muted: #8a97ab;
    --accent: #818cf8;
    --accent-2: #38bdf8;
    --accent-soft: rgba(129, 140, 248, .14);
    --ring: rgba(129, 140, 248, .35);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, .12);
    --ok: #34d399;
    --ok-soft: rgba(52, 211, 153, .12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .75);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--font); -webkit-font-smoothing: antialiased; background: var(--bg); color: var(--text); }
body { margin: 0; min-height: 100dvh; font-size: 15px; line-height: 1.55; background: var(--bg); transition: background-color .2s var(--ease), color .2s var(--ease); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, p { margin: 0; }
code { font-family: var(--mono); }
svg { flex: none; }

/* —— Kerangka: panel merek + panel kerja —— */
.shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.hero {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; align-content: space-between; gap: 2rem;
    padding: clamp(2rem, 4vw, 3.5rem);
    color: #fff;
    background: linear-gradient(150deg, #312e81 0%, #4338ca 38%, #0369a1 100%);
}
.switch { margin: 0; padding-top: 1rem; border-top: 1px solid var(--border); text-align: center; font-size: .9rem; color: var(--muted); }
.switch a { font-weight: 600; }
/* Palet merek (logo owner 20 Nov 2026, sama dengan Website, Portal Jamaah, dan Admin Web): coklat #6a2e0a,
   hijau #00b12a, emas #f0a007, untuk konteks jamaah maupun admin. Di mode gelap emas jadi aksen
   karena coklat hanya 1,7:1 di latar gelap. */
:root {
    --bg: #f8f4ec; --surface: #ffffff; --surface-2: #fbf8f2; --surface-3: #f2eadc; --glass: rgba(255, 255, 255, .84);
    --border: #eadfcd; --border-strong: #dccbb0; --text: #23140a; --text-2: #4a3424; --muted: #6f5a48;
    --accent: #6a2e0a; --accent-2: #007a1c; --accent-soft: rgba(106, 46, 10, .08); --ring: rgba(106, 46, 10, .26);
    --accent-ink: #ffffff; --accent-btn: linear-gradient(135deg, #7d3810, #5b2508);
    --danger: #c42020; --ok: #007a1c; --ok-soft: rgba(0, 177, 42, .11); --pane-glow: rgba(0, 177, 42, .08);
}
:root[data-theme='dark'] {
    --bg: #140b05; --surface: #1e130b; --surface-2: #23170d; --surface-3: #2c1d11; --glass: rgba(20, 11, 5, .8);
    --border: #35251a; --border-strong: #4a3424; --text: #f6ece0; --text-2: #e0cfbb; --muted: #b39c86;
    --accent: #f0a007; --accent-2: #1fc24a; --accent-soft: rgba(240, 160, 7, .13); --ring: rgba(240, 160, 7, .34);
    --accent-ink: #23140a; --accent-btn: linear-gradient(135deg, #f5b42e, #e09500);
    --danger: #f87171; --ok: #1fc24a; --ok-soft: rgba(31, 194, 74, .13);
}
body .hero { background: linear-gradient(150deg, #2a1204 0%, #5a2508 50%, #6a2e0a 100%); }
:root[data-theme='dark'] body .hero { background: linear-gradient(150deg, #120702 0%, #3a1805 55%, #4f2207 100%); }
body .orb.o1 { background: #00b12a; opacity: .4; }
body .orb.o2 { background: #f0a007; opacity: .45; }
body .orb.o3 { background: #f0a007; }
body .btn.primary { color: var(--accent-ink); background: var(--accent-btn); box-shadow: 0 10px 24px -12px var(--accent); }
body .btn.primary:hover { box-shadow: 0 14px 30px -12px var(--accent); }
:root[data-theme='dark'] .hero { background: linear-gradient(150deg, #1e1b4b 0%, #312e81 45%, #0c4a6e 100%); }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1; opacity: .18;
    background-image: radial-gradient(rgba(255,255,255,.7) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(70% 60% at 30% 40%, #000, transparent);
}
.orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(50px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.orb.o1 { width: 26rem; height: 26rem; left: -8rem; bottom: -10rem; background: #6366f1; }
.orb.o2 { width: 20rem; height: 20rem; right: -6rem; top: -6rem; background: #0ea5e9; animation-duration: 23s; }
.orb.o3 { width: 12rem; height: 12rem; right: 18%; bottom: 22%; background: #f59e0b; opacity: .3; animation-duration: 27s; }
.brand { display: inline-grid; grid-auto-flow: column; justify-self: start; justify-content: start; place-items: center start; gap: .75rem; color: inherit; font-weight: 750; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.logo { flex: none; width: 2.6rem; height: 2.6rem; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .22)); }
.hero-copy { display: grid; gap: 1rem; max-width: 30rem; animation: rise .7s var(--ease) both; }
.hero-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; font-weight: 750; letter-spacing: -.02em; }
.hero-copy p { opacity: .85; font-size: 1.02rem; }
.perks { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .65rem; }
.perks li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; place-items: center start; animation: rise .6s var(--ease) both; }
.perks li:nth-child(2) { animation-delay: .08s; }
.perks li:nth-child(3) { animation-delay: .16s; }
.perk-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.hero-foot { font-size: .82rem; opacity: .7; }

.pane { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: 100dvh; padding: 1.25rem clamp(1rem, 4vw, 3rem); }
.pane-top { display: flex; justify-content: space-between; place-items: center; gap: 1rem; }
.pane-top .brand { visibility: hidden; color: var(--text); }
.pane-main { display: grid; place-items: center; padding: 1.5rem 0; }
.pane-foot { text-align: center; font-size: .8rem; color: var(--muted); }

/* —— Kartu —— */
.card { width: 100%; max-width: 26rem; display: grid; gap: 1.1rem; animation: rise .55s var(--ease) both; }
.card.wide { max-width: 32rem; }
.card-head { display: grid; gap: .4rem; }
.card-icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: .35rem; border-radius: 14px; color: var(--accent); background: var(--accent-soft); animation: pop .6s var(--spring) .1s both; }
.card-head h1 { font-size: 1.65rem; line-height: 1.2; font-weight: 750; letter-spacing: -.02em; }
.card-head p { color: var(--muted); }
.card-head p strong { color: var(--text); font-weight: 600; }

.alert { display: grid; grid-template-columns: auto 1fr; gap: .6rem; margin: 0; padding: .75rem .9rem; border: 1px solid transparent; border-radius: 12px; font-size: .9rem; list-style: none; animation: slide .45s var(--spring) both; }
.alert ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .2rem; }
.alert.error { color: var(--danger); background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 28%, transparent); }
.alert.ok { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 28%, transparent); }
.alert.error { animation-name: slide, shake; animation-duration: .45s, .4s; animation-delay: 0s, .1s; }

form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
label { font-size: .86rem; font-weight: 600; color: var(--text-2); }
.control { position: relative; display: grid; }
.control > svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; transition: color .2s var(--ease); }
input {
    width: 100%; min-height: 2.9rem; padding: .7rem .9rem .7rem 2.6rem;
    font: inherit; color: var(--text); background: var(--surface);
    border: 1px solid var(--border); border-radius: 12px; outline: none;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
input:hover { border-color: var(--border-strong); }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.control:focus-within > svg { color: var(--accent); }
input.code { padding-left: .9rem; text-align: center; font-family: var(--mono); font-size: 1.45rem; letter-spacing: .35em; }
.reveal { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.reveal:hover { background: var(--surface-3); color: var(--text); }
.control:has(.reveal) input { padding-right: 3rem; }
.hint { font-size: .8rem; color: var(--muted); }
.hint.warn { color: #d97706; }

.btn {
    position: relative; display: inline-grid; grid-auto-flow: column; place-items: center; place-content: center; gap: .5rem;
    min-height: 2.9rem; padding: .7rem 1.1rem; border: 1px solid var(--border); border-radius: 12px;
    font: inherit; font-weight: 600; color: var(--text); background: var(--surface); cursor: pointer; text-decoration: none;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease), background-color .18s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn.primary { width: 100%; border-color: transparent; color: #fff; background: linear-gradient(135deg, #4f46e5, #2563eb 60%, #0284c7); box-shadow: 0 10px 24px -12px #4f46e5; }
.btn.primary:hover { filter: brightness(1.07); box-shadow: 0 14px 30px -12px #4f46e5; }
.btn.ghost { border-color: transparent; background: none; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--surface-3); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .55; cursor: not-allowed; transform: none; filter: none; pointer-events: none; }
.spinner { width: 1.05rem; height: 1.05rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .6rem; }
.foot { text-align: center; font-size: .9rem; color: var(--muted); }

.panel { padding: 1rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.steps { counter-reset: step; display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; animation: rise .5s var(--ease) both; }
.steps > li:nth-child(2) { animation-delay: .08s; }
.steps > li:nth-child(3) { animation-delay: .16s; }
.steps > li::before { content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; font-weight: 700; font-size: .9rem; color: var(--accent); background: var(--accent-soft); }
.steps h2 { font-size: .98rem; font-weight: 650; margin: .2rem 0 .3rem; }
.steps p { color: var(--muted); font-size: .9rem; }
.qr { display: grid; place-items: center; margin: .75rem 0; }
.qr svg { width: 188px; height: 188px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); animation: pop .6s var(--spring) .2s both; }
.secret { display: grid; grid-template-columns: 1fr auto; gap: .5rem; place-items: center stretch; padding: .4rem .4rem .4rem .8rem; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--surface-2); }
.secret code { font-size: .88rem; word-break: break-all; color: var(--text-2); }
.mini { min-height: 2.1rem; padding: .35rem .7rem; font-size: .82rem; border-radius: 9px; }

.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.codes li { animation: rise .45s var(--ease) both; }
.codes li:nth-child(n+3) { animation-delay: .05s; }
.codes li:nth-child(n+5) { animation-delay: .1s; }
.codes li:nth-child(n+7) { animation-delay: .15s; }
.codes li:nth-child(n+9) { animation-delay: .2s; }
.codes code { display: block; padding: .6rem; text-align: center; font-size: .98rem; letter-spacing: .06em; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text); }
.check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; place-items: start; font-weight: 500; color: var(--text-2); cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; min-height: 0; margin: .15rem 0 0; padding: 0; accent-color: var(--accent); }

.rules { display: grid; gap: .3rem; margin: .2rem 0 0; padding: 0; list-style: none; font-size: .8rem; color: var(--muted); }
.rules li { display: grid; grid-template-columns: 1rem 1fr; gap: .45rem; place-items: center start; transition: color .2s var(--ease); }
.rules li::before { content: ''; width: .55rem; height: .55rem; margin-left: .2rem; border-radius: 50%; background: var(--border-strong); transition: background-color .2s var(--ease), transform .3s var(--spring); }
.rules li.met { color: var(--ok); }
.rules li.met::before { background: var(--ok); transform: scale(1.3); }
.meter { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--danger); transition: width .35s var(--ease), background-color .35s var(--ease); }

.apps { display: grid; gap: .6rem; }
.app-link { display: grid; grid-template-columns: auto 1fr auto; gap: .85rem; place-items: center start; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); transition: transform .2s var(--ease), border-color .2s var(--ease); animation: rise .5s var(--ease) both; }
.app-link:nth-child(2) { animation-delay: .07s; }
.app-link:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent); }
.app-link strong { display: block; font-weight: 650; }
.app-link small { color: var(--muted); }
.app-link .card-icon { width: 2.5rem; height: 2.5rem; margin: 0; border-radius: 12px; animation: none; }
.app-link > svg:last-child { color: var(--muted); transition: transform .2s var(--ease); }
.app-link:hover > svg:last-child { transform: translateX(3px); color: var(--accent); }
.big-code { font-size: clamp(4rem, 12vw, 6rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: pop .7s var(--spring) both; }

/* —— Pemilih tema —— */
.theme { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 2.1rem; padding: 3px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface-2); }
.theme-knob { position: absolute; top: 3px; left: 3px; width: 2.1rem; height: calc(100% - 6px); border-radius: 99px; background: var(--surface); box-shadow: 0 1px 3px rgba(15,23,42,.12), 0 0 0 1px var(--border); transition: transform .32s var(--spring); }
.theme button { position: relative; display: grid; place-items: center; height: 1.9rem; padding: 0; border: 0; border-radius: 99px; background: none; color: var(--muted); cursor: pointer; transition: color .2s var(--ease); }
.theme button:hover, .theme button[aria-checked='true'] { color: var(--text); }
.theme button[aria-checked='true'] svg { animation: pop .4s var(--spring); }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

@media (max-width: 899px) {
    .shell { grid-template-columns: 1fr; }
    .hero { display: none; }
    .pane-top .brand { visibility: visible; }
    .pane { background: radial-gradient(700px 380px at 0% -10%, var(--accent-soft), transparent 60%), radial-gradient(600px 360px at 100% 0%, var(--pane-glow, rgba(14,165,233,.09)), transparent 55%); }
    .pane-main { place-items: start center; padding-top: 2rem; }
}
@media (max-width: 420px) {
    .codes { gap: .4rem; }
    .codes code { font-size: .9rem; }
    .row { grid-auto-flow: row; }
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes slide { from { opacity: 0; transform: translateY(-8px); } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.08); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translate(3rem, -2.5rem) scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
    

/* —— Akun tidak cocok —— */
.account-chip { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; place-items: center start; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); animation: rise .5s var(--ease) both; }
.account-chip strong { display: block; font-weight: 650; }
.account-chip small { color: var(--muted); word-break: break-all; }
.avatar { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.badge { padding: .2rem .6rem; border-radius: 99px; font-size: .75rem; font-weight: 650; color: var(--accent); background: var(--accent-soft); }
.btn.ghost-border { width: 100%; background: none; }
.btn.ghost-border:hover { background: var(--surface-3); }
.hint.center { text-align: center; }
