body { min-height: 100%; height: auto; }

.auth {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 16px;
  background: transparent;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 32px 28px 24px;
  background: var(--jl-glass-strong-bg);
  border: 1px solid var(--jl-glass-border);
  border-radius: 24px;
  box-shadow: var(--jl-glass-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-brand { align-self: center; margin-bottom: 4px; }
.auth-logo { height: 52px; width: auto; display: block; }
.auth h1 { margin: 0; font-size: 22px; font-weight: 700; color: var(--accent); text-align: center; }
.auth-sub { margin: -8px 0 4px; color: var(--muted); font-size: 13px; text-align: center; }

.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 42px;
  font-weight: 600;
}
.btn-google:hover { background: rgb(var(--jl-surface-2)); color: var(--text); border-color: rgb(var(--jl-line)); }

.auth-sep {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 12px;
}
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; border-top: 1px solid var(--border); }

#authForm { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; color: var(--muted); font-weight: 500; }
.field input { height: 40px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.link { border: 0; background: none; padding: 0; color: var(--accent); font-size: 12px; cursor: pointer; }
.link:hover { text-decoration: underline; }
#authForm .btn-primary { height: 42px; margin-top: 4px; }

.auth-msg {
  margin: 0;
  padding: 8px 10px;
  border-radius: 7px;
  background: rgb(var(--jl-danger) / .1);
  color: rgb(var(--jl-danger));
  font-size: 13px;
}
.auth-msg.ok { background: rgb(var(--jl-success) / .14); color: rgb(var(--jl-success)); }

.auth-switch { margin: 4px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.auth-switch a { color: var(--accent); font-weight: 600; text-decoration: none; }

.auth-setup {
  max-width: 400px;
  padding: 10px 14px;
  border: 1px solid rgb(var(--jl-warning) / .4);
  border-radius: 10px;
  background: rgb(var(--jl-warning) / .16);
  color: rgb(var(--jl-warning));
  font-size: 12px;
}
.auth-setup code { font-size: 11px; }

/* ---------- Verifikasi OTP ---------- */
.nowrap { white-space: nowrap; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input {
  height: 54px !important;
  padding: 0 !important;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.demo-code { margin: 0; padding: 8px 10px; border-radius: 7px; background: rgb(var(--jl-warning) / .16); color: rgb(var(--jl-warning)); font-size: 13px; }
.field-hint { font-size: 12px; color: var(--muted); }
.link:disabled { color: var(--muted); cursor: default; text-decoration: none; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .auth-card { background: var(--surface); }
}
.dark .auth-logo { filter: brightness(0) invert(1); }
