/* BoboEdu: authentication.css
   Sign-up and sign-in dialog, guest access and authentication forms. */

body.authing {
  overflow: hidden;
}
.auth {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  place-items: safe center;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 16px
    calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--auth-bg);
}
/* Bobo peeks over the top of the card */
.authwrap {
  position: relative;
  width: min(440px, 100%);
  padding-top: 74px;
  isolation: isolate;
}
.authbobo {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 30px;
  width: 96px;
}
.authbobo svg {
  display: block;
  width: 100%;
  height: auto;
}
.authbobo .bobo {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: peek 0.7s cubic-bezier(0.2, 1.4, 0.5, 1) 0.2s both;
}
@keyframes peek {
  from {
    transform: translateY(40px) rotate(8deg);
  }
}
.authcard {
  width: 100%;
  display: grid;
  gap: 16px;
  padding: clamp(22px, 5vw, 32px);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 26px;
  box-shadow:
    0 2px 0 rgba(29, 32, 66, 0.12),
    0 24px 48px -24px rgba(29, 32, 66, 0.45);
}
@media (prefers-reduced-motion: reduce) {
  .authbobo .bobo {
    animation: none;
  }
}
.authbrand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.authbrand svg {
  width: 44px;
  height: 44px;
}
.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.auth-header .theme-toggle {
  flex: none;
}
.auth-header .theme-toggle-label {
  display: none;
}
.authcard h1 {
  margin: 6px 0 0;
  font-size: clamp(30px, 7vw, 36px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.authlede {
  margin: 0;
  color: var(--muted);
}
.authtabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.authtabs .mode {
  padding-inline: 8px;
}
.authform {
  display: grid;
  gap: 14px;
}
.authhint {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.authform .btn.big {
  width: 100%;
}
.authlegacy {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 15px;
  background: var(--accent-soft);
  color: var(--ink);
}
.authactions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.authactions .btn {
  flex: 1 1 160px;
}
