/* Log in / Create account pages. Builds on /assets/site/site.css tokens. */
.acct-body {
  min-height: 100vh;
}

.acct-main {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 24px;
  min-height: calc(100vh - 200px);
  padding: calc(var(--header-h) + clamp(32px, 8vh, 80px)) var(--gutter) clamp(48px, 10vh, 100px);
  overflow: hidden;
}

.acct-main::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -20vh;
  width: min(1100px, 130vw);
  height: 80vh;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(229, 169, 60, 0.12), rgba(229, 169, 60, 0.03) 50%, rgba(5, 5, 7, 0) 72%);
  pointer-events: none;
}

.acct-card {
  position: relative;
  width: min(440px, 100%);
  padding: clamp(28px, 5vw, 40px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border-hairline);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}

.acct-product {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-amber);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.acct-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 12px var(--accent-amber);
}

.acct-card h1 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.acct-lede {
  margin: 10px 0 24px;
  color: rgba(245, 243, 238, 0.7);
  line-height: 1.5;
}

.acct-alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
  color: #fecaca;
  font-size: 14.5px;
  line-height: 1.45;
}

.acct-alert[data-tone="info"] {
  border-color: rgba(229, 169, 60, 0.4);
  background: rgba(229, 169, 60, 0.08);
  color: #f1d29a;
}

.acct-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: #f5f3ee;
  color: #1f1f1f;
  font: 500 15.5px var(--font-sans);
  cursor: pointer;
}

.acct-google svg {
  width: 20px;
  height: 20px;
}

.acct-google:hover:not(:disabled) {
  background: #ffffff;
}

.acct-google:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.acct-google:focus-visible,
.acct-show:focus-visible,
.acct-field input:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 2px;
}

.acct-note,
.acct-fine {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.acct-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.acct-or::before,
.acct-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-hairline);
}

.acct-form {
  display: grid;
  gap: 16px;
}

.acct-field {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
}

.acct-field > span:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.acct-inline-link {
  color: var(--text-secondary);
  font-weight: 400;
  text-decoration: none;
}

.acct-inline-link:hover {
  color: var(--text-ivory);
}

.acct-field input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: rgba(5, 5, 7, 0.6);
  color: var(--text-ivory);
  font: 400 16px var(--font-sans);
}

.acct-field input[aria-invalid="true"] {
  border-color: rgba(248, 113, 113, 0.6);
}

.acct-pass {
  position: relative;
  display: block;
}

.acct-pass input {
  padding-right: 72px;
}

.acct-show {
  position: absolute;
  right: 6px;
  top: 50%;
  translate: 0 -50%;
  min-width: 56px;
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font: 500 13px var(--font-sans);
  cursor: pointer;
}

.acct-hint {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 400;
}

.acct-submit {
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
}

.acct-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.acct-switch {
  margin: 22px 0 0;
  color: var(--text-secondary);
  font-size: 14.5px;
  text-align: center;
}

.acct-switch a {
  color: var(--text-ivory);
  font-weight: 500;
}

.acct-steps {
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.acct-legal {
  position: relative;
  max-width: 440px;
  margin: 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}
