/* Account pages. Colours come only from theme.css tokens (--gb-*). Mobile first. */
:root { -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { font-size: 16px; line-height: 1.45; }
button, input { font: inherit; color: inherit; }
a { color: var(--gb-link); }
a:hover { text-decoration: underline; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 20; padding: 8px 12px;
  background: var(--gb-surface); color: var(--gb-text); border-radius: var(--gb-radius-sm);
  border: 1px solid var(--gb-border-strong);
}
.skip:focus { top: 12px; }

.top {
  background: var(--gb-header-bg); color: var(--gb-header-text);
  border-bottom: 1px solid var(--gb-header-border);
}
.top-inner {
  max-width: 1040px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; flex: none; display: block; }
.brand b { display: block; font-size: 15.5px; letter-spacing: -.01em; line-height: 1.15; }
.brand small { display: block; margin-top: 1px; font-size: 12px; color: var(--gb-header-muted); }

.shell { width: min(440px, calc(100% - 32px)); margin: 28px auto 12px; }
.card { padding: 26px 22px 22px; }
.eyebrow {
  margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gb-accent-soft-text);
}
h1 {
  margin: 8px 0 0; font-family: var(--gb-font-display); font-size: 32px; font-weight: 600;
  letter-spacing: -.02em; line-height: 1.12; color: var(--gb-heading);
}
.lead { margin: 8px 0 18px; color: var(--gb-text-muted); font-size: 15px; }

form { display: grid; gap: 0; }
.field { margin: 0 0 14px; }
label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 650; color: var(--gb-text-muted); }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--gb-radius-sm);
  border: 1px solid var(--gb-border-strong); background: var(--gb-surface-2); color: var(--gb-text); outline: none;
}
input:focus { border-color: var(--gb-accent); box-shadow: 0 0 0 3px var(--gb-focus); }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--gb-text-muted); }
.hint:empty, .alert:empty { display: none; }
label .hint { margin: 0; font-weight: 500; }
/* /verify: breathing room between the expiry note and the Verify button. */
.otp-hint { margin: 12px 0 20px; line-height: 1.5; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 48px; padding: 12px 16px; border-radius: var(--gb-radius-sm); border: 1px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--gb-focus); outline-offset: 2px; }
.btn:disabled { cursor: progress; }
.btn-primary:disabled { opacity: .72; }
.btn-quiet:disabled { opacity: 1; color: var(--gb-text); background: var(--gb-surface-2); }
.btn-primary { background: var(--gb-accent); border-color: var(--gb-accent); color: var(--gb-accent-text); }
.btn-primary:hover { background: var(--gb-accent-hover); border-color: var(--gb-accent-hover); }
.btn-google {
  margin-top: 10px; background: var(--gb-surface-2); color: var(--gb-text);
  border-color: var(--gb-border-strong);
}
.btn-google:hover { background: var(--gb-surface-hover); }
.g-mark {
  width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--gb-accent); color: var(--gb-accent-text); font-size: 13px; font-weight: 750;
}

.or {
  display: flex; align-items: center; gap: 10px; margin: 16px 0 2px;
  color: var(--gb-text-muted); font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
}
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--gb-border); }

.links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 16px 0 0; font-size: 14px; }
.legacy { margin: 14px 0 0; text-align: center; font-size: 14px; }
.alert { margin: 0 0 14px; color: var(--gb-danger); font-size: 14.5px; font-weight: 650; }
.alert:empty { display: none; }

.otp { display: flex; justify-content: space-between; gap: 8px; margin: 4px 0 6px; }
.otp input {
  width: 100%; min-width: 0; max-width: 52px; height: 56px; text-align: center; font-size: 22px; font-weight: 700;
  border-radius: var(--gb-radius-sm); border: 1px solid var(--gb-border-strong); background: var(--gb-surface-2);
  color: var(--gb-text); padding: 0;
}
.otp input:focus { border-color: var(--gb-accent); box-shadow: 0 0 0 3px var(--gb-focus); outline: none; }

.resend { margin-top: 12px; }
.btn-quiet {
  background: transparent; color: var(--gb-text); border: 1px solid var(--gb-border-strong);
}
.btn-quiet:hover { background: var(--gb-surface-hover); }

.foot {
  text-align: center; color: var(--gb-text-muted); font-size: 13px;
  margin: 8px 16px calc(28px + env(safe-area-inset-bottom));
}
.foot a { font-weight: 650; }

@media (max-width: 420px) {
  h1 { font-size: 28px; }
  .card { padding: 22px 16px 18px; }
  .otp { gap: 6px; }
  .otp input { height: 48px; font-size: 20px; }
}
