/* Padanan visual BaliTech Console (console.balitechsolution.com/register).
   Hanya utilitas yang dipakai halaman auth; tidak memuat Tailwind penuh. */
:root {
  --bt-base: oklch(17% .012 220);
  --bt-panel: oklch(21% .014 220);
  --bt-line: oklch(31% .018 220);
  --bt-ink: oklch(95% .006 210);
  --bt-muted: oklch(72% .014 215);
  --bt-faint: oklch(62% .014 215);
  --bt-accent: oklch(78% .13 180);
  --bt-on-accent: oklch(20% .03 190);
  --bt-danger: oklch(72% .17 25);
  --bt-success: oklch(78% .12 170);
  --radius: .5rem;
  --spacing: .25rem;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme=dark]) {
    --bt-base: oklch(98.5% .003 210);
    --bt-panel: oklch(100% 0 0);
    --bt-line: oklch(89% .01 210);
    --bt-ink: oklch(22% .02 220);
    --bt-muted: oklch(45% .018 215);
    --bt-faint: oklch(50% .014 215);
    --bt-accent: oklch(50% .11 182);
    --bt-on-accent: oklch(99% 0 0);
    --bt-danger: oklch(50% .19 25);
    --bt-success: oklch(45% .13 170);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; border: 0 solid; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; }
body {
  min-height: 100dvh;
  background: var(--bt-base);
  color: var(--bt-ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; cursor: pointer; }

.auth-shell { display: grid; min-height: 100dvh; }
@media (min-width: 1024px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); }
}

/* Panel merek */
.auth-brand-panel {
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  padding: 2.5rem;
  color: #fff;
  background: radial-gradient(900px 500px at 80% 110%, #14b8a61f, #0000 60%), #05080c;
}
@media (min-width: 1024px) { .auth-brand-panel { display: flex; } }
.auth-brand-panel .auth-brand { position: relative; display: flex; align-items: center; gap: .75rem; font-size: .875rem; }
.auth-brand-panel .auth-brand img { width: 2.25rem; height: 2.25rem; }
.auth-brand-panel .auth-brand-lockup { line-height: 1.25; }
.auth-brand-panel .auth-brand-lockup small { display: block; font-size: 10px; letter-spacing: .25em; color: #ffffff80; }
.auth-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(#94a3b814 1px, #0000 1px), linear-gradient(90deg, #94a3b814 1px, #0000 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(at 30% 40%, #000 30%, #0000 75%);
  mask-image: radial-gradient(at 30% 40%, #000 30%, #0000 75%);
}
.auth-brand-panel::after {
  content: "";
  position: absolute;
  top: -10rem;
  left: -8rem;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  pointer-events: none;
  background: #14b8a633;
  filter: blur(64px);
}
.auth-brand-copy { position: relative; max-width: 32rem; }
.auth-brand-copy h1 {
  font-size: 2.25rem;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.auth-brand-copy h1 span { color: #5eead4; }
.auth-code-sample {
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid #ffffff1a;
  border-radius: .75rem;
  background: #0f172acc;
  box-shadow: 0 25px 50px -12px #000c;
}
.auth-code-heading { display: flex; align-items: center; gap: .375rem; padding: .625rem 1rem; border-bottom: 1px solid #ffffff1a; }
.auth-code-heading i { width: 10px; height: 10px; border-radius: 50%; }
.auth-code-heading i:nth-child(1) { background: #f87171b3; }
.auth-code-heading i:nth-child(2) { background: #fbbf24b3; }
.auth-code-heading i:nth-child(3) { background: #34d399b3; }
.auth-code-heading span { margin-left: .5rem; font: 11px var(--mono); color: #ffffff66; }
.auth-code-sample pre { overflow-x: auto; padding: 1rem; font: 12px/1.625 var(--mono); color: #fffc; }
.auth-code-sample .dim { color: #fff6; }
.auth-code-sample .key { color: #5eead4; }
.auth-code-sample .ok { color: #6ee7b7; }
.auth-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; font-size: .875rem; }
.auth-features b { display: block; font-size: 1.125rem; font-weight: 600; }
.auth-features span { color: #ffffff8c; }
.auth-brand-footer { position: relative; display: flex; align-items: center; justify-content: space-between; font-size: .75rem; color: #ffffff73; }
.auth-brand-footer nav { display: flex; gap: 1rem; }
.auth-brand-footer a:hover { color: #fff; }

/* Kolom formulir */
.auth-content { display: flex; flex-direction: column; padding: 2rem 1rem; }
@media (min-width: 640px) { .auth-content { padding: 2rem 2.5rem; } }
.auth-topbar { display: flex; align-items: center; justify-content: space-between; }
.auth-mobile-brand { display: flex; align-items: center; gap: .625rem; font-size: .875rem; font-weight: 600; }
@media (min-width: 1024px) { .auth-mobile-brand { visibility: hidden; } }
.auth-mobile-brand img { width: 2rem; height: 2rem; }
.auth-back { font-size: .75rem; color: var(--bt-muted); }
.auth-back:hover { color: var(--bt-ink); }
.auth-center { display: flex; flex: 1; align-items: center; }
.auth-form-wrap { width: 100%; max-width: 24rem; margin: 0 auto; padding: 2.5rem 0; }
.auth-heading h2 { font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -.025em; }
.auth-heading p { margin-top: .375rem; font-size: .875rem; color: var(--bt-muted); }

.auth-oauth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: 1.5rem; }
.auth-oauth-button {
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid var(--bt-line);
  border-radius: var(--radius);
  padding-inline: 1rem;
  font-size: .875rem;
  font-weight: 500;
}
.auth-oauth-button:hover { background: color-mix(in oklab, var(--bt-panel) 70%, transparent); }
.auth-oauth-button:disabled { opacity: .6; cursor: progress; }
.oauth-mark { font-weight: 700; color: #4285f4; }
.oauth-github { width: 1rem; height: 1rem; }

.auth-divider, .auth-or { display: flex; align-items: center; gap: .75rem; font-size: .75rem; color: var(--bt-faint); }
.auth-divider { margin: 1.25rem 0; }
.auth-or { margin: 1.5rem 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--bt-line); }

.auth-field + .auth-field { margin-top: 1rem; }
.auth-field label, .auth-password-label label {
  display: block;
  margin-bottom: .375rem;
  font-size: .75rem;
  font-weight: 500;
  color: var(--bt-muted);
}
.auth-password-label { display: flex; align-items: baseline; justify-content: space-between; }
.auth-password-label a { font-size: .75rem; color: var(--bt-accent); }
.auth-password-label a:hover { text-decoration: underline; }
.auth-field input {
  width: 100%;
  height: 2.75rem;
  padding-inline: .875rem;
  border: 1px solid var(--bt-line);
  border-radius: var(--radius);
  background: var(--bt-panel);
  font-size: .875rem;
  outline: none;
}
.auth-field input::placeholder { color: var(--bt-faint); }
.auth-field input:focus-visible { border-color: var(--bt-accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--bt-accent) 25%, transparent); }
.auth-password-control { position: relative; }
.auth-password-control input { padding-right: 6rem; }
.auth-password-toggle, .reveal-btn {
  position: absolute;
  inset: 0 0 0 auto;
  display: flex;
  align-items: center;
  padding-inline: .875rem;
  font-size: .75rem;
  font-weight: 500;
  color: var(--bt-muted);
}
.auth-password-toggle:hover, .reveal-btn:hover { color: var(--bt-ink); }

.auth-submit, .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  height: 2.75rem;
  margin-top: 1rem;
  border-radius: var(--radius);
  padding-inline: 1rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--bt-on-accent);
  background: var(--bt-accent);
}
.auth-submit:hover, .btn-primary:hover { filter: brightness(1.05); }
.auth-submit:disabled, .btn-primary:disabled { opacity: .65; cursor: progress; }

.auth-status { min-height: 1.25rem; margin-top: .75rem; font-size: .8125rem; color: var(--bt-muted); }
.auth-status:empty { display: none; }
.auth-status[data-kind="error"] {
  padding: .75rem .875rem;
  border: 1px solid color-mix(in oklab, var(--bt-danger) 40%, transparent);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--bt-danger) 12%, transparent);
  color: var(--bt-danger);
}
.auth-status[data-kind="success"] { color: var(--bt-success); }
.auth-status[data-kind="pending"] { color: var(--bt-muted); }

.auth-register-prompt, .auth-links { margin-top: 2rem; text-align: center; font-size: .875rem; color: var(--bt-muted); }
.auth-register-prompt a, .auth-links a { color: var(--bt-accent); font-weight: 500; }
.auth-register-prompt a:hover, .auth-links a:hover { text-decoration: underline; }
.auth-links { display: flex; justify-content: center; gap: 1.25rem; margin-top: 1rem; }
.auth-note { margin-top: 1.5rem; font-size: .6875rem; line-height: 1.6; color: var(--bt-faint); text-align: center; }
.auth-content-footer { text-align: center; font-size: 11px; color: var(--bt-faint); }
.auth-content-footer a { text-decoration: underline; }
.auth-content-footer a:hover { color: var(--bt-ink); }

/* Panel tanpa aside (pendaftaran / lupa sandi di layar lebar) */
.auth-main { width: 100%; max-width: 24rem; margin: 2rem auto; }
.auth-page { padding: 0; }
