/**
 * Account page — extends landing.css
 */

.auth-page__nav {
  justify-content: space-between;
}

.auth-page__home {
  font-size: 12px;
  font-weight: 600;
  color: var(--landing-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.auth-page__home:hover {
  color: var(--landing-blue);
}

.auth-page__main {
  padding: clamp(32px, 6vw, 64px) 20px 80px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - var(--landing-nav-h));
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 28px 26px 32px;
  background: var(--landing-elevated);
  border: 1px solid var(--landing-border);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.auth-card__h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.auth-card__lead {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--landing-muted);
  line-height: 1.5;
}

.auth-banner {
  margin-bottom: 18px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  border-radius: 8px;
  border: 1px solid rgba(212, 160, 23, 0.45);
  background: rgba(212, 160, 23, 0.08);
  color: #e6edf3;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 18px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--landing-border);
}

.auth-tab {
  flex: 1;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 650;
  border: none;
  background: var(--landing-surface);
  color: var(--landing-muted);
  cursor: pointer;
}

.auth-tab--active {
  background: linear-gradient(180deg, rgba(63, 185, 80, 0.2) 0%, rgba(15, 20, 28, 0.95) 100%);
  color: var(--landing-text);
}

.auth-panel[hidden] {
  display: none !important;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--landing-muted);
  margin-top: 8px;
}

.auth-label:first-of-type {
  margin-top: 0;
}

.auth-input {
  padding: 10px 12px;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid rgba(88, 166, 255, 0.22);
  background: #06080c;
  color: var(--landing-text);
  outline: none;
}

.auth-input:focus {
  border-color: rgba(88, 166, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.12);
}

.auth-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--landing-muted);
  line-height: 1.4;
}

.auth-submit {
  margin-top: 18px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(63, 185, 80, 0.5);
  border-radius: 6px;
  color: #0d1117;
  background: linear-gradient(180deg, #3fb950 0%, #2a8f3e 100%);
  cursor: pointer;
}

.auth-submit:hover {
  filter: brightness(1.06);
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-foot {
  margin: 14px 0 0;
  text-align: center;
}

.auth-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--landing-blue);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-message {
  margin: 16px 0 0;
  min-height: 1.25em;
  font-size: 13px;
  line-height: 1.45;
  color: var(--landing-accent);
}

.auth-message.auth-message--err {
  color: #f85149;
}

.auth-org-note {
  margin: 22px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--landing-muted);
}

.auth-org-note code {
  font-size: 11px;
  color: #8b949e;
}

.auth-inline {
  color: var(--landing-blue);
  text-decoration: none;
  font-weight: 600;
}

.auth-inline:hover {
  text-decoration: underline;
}

.auth-page__main--split {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 900px) {
  .auth-page__main--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }
}

.auth-hero {
  margin-bottom: 8px;
}

.auth-hero__kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--landing-blue);
}

.auth-hero__title {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--landing-accent);
}

.auth-hero__lead {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--landing-muted);
}

.auth-trust-row {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.auth-trust-row__item {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #9fb0c3;
}

.auth-trust-row__item::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--landing-blue);
  vertical-align: middle;
}

.auth-card--narrow {
  max-width: 440px;
}

.auth-oauth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 6px;
}

.auth-oauth__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 650;
  border-radius: 8px;
  border: 1px solid var(--landing-border);
  background: var(--landing-surface);
  color: var(--landing-text);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.auth-oauth__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
  pointer-events: none;
}

.auth-oauth__btn:hover {
  border-color: rgba(88, 166, 255, 0.45);
  background: rgba(88, 166, 255, 0.06);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--landing-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--landing-border);
}

.auth-divider span {
  flex-shrink: 0;
}

.auth-turnstile {
  margin: 14px 0 4px;
  min-height: 68px;
}

.auth-legal {
  margin: 14px 0 0;
  padding: 14px 14px 12px;
  border: 1px solid var(--landing-border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.auth-legal__legend {
  padding: 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--landing-muted);
}

.auth-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #c9d1d9;
  cursor: pointer;
}

.auth-check:first-of-type {
  margin-top: 8px;
}

.auth-check input {
  margin-top: 3px;
  flex-shrink: 0;
}

.auth-check a {
  color: var(--landing-blue);
  font-weight: 600;
}

.auth-check--optional {
  opacity: 0.95;
}

.auth-callback .auth-card__lead {
  margin-bottom: 12px;
}

.auth-footer-legal {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--landing-border);
  font-size: 12px;
  color: var(--landing-muted);
}

.auth-footer-legal__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 8px;
}

.auth-footer-legal a {
  color: var(--landing-blue);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer-legal a:hover {
  text-decoration: underline;
}

.auth-footer-legal__sep {
  margin: 0 6px;
  opacity: 0.5;
}

.auth-footer-tagline {
  margin: 12px 0 0;
  font-size: 12px;
  color: #6e7a87;
}

.auth-footer-legal-note {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #6e7681;
  text-align: center;
}

.auth-footer-legal-note .auth-inline {
  font-weight: 600;
}

.legal-doc {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.legal-doc__article {
  padding: 8px 0 64px;
}

.legal-doc__title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--landing-accent);
}

.legal-doc__meta {
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--landing-muted);
}

.legal-doc__article h2 {
  margin: 28px 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--landing-accent);
}

.legal-doc__article p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.65;
  color: #c9d1d9;
}

.legal-doc__table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
  -webkit-overflow-scrolling: touch;
}

.legal-doc__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
  color: #c9d1d9;
}

.legal-doc__table th,
.legal-doc__table td {
  border: 1px solid var(--landing-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-doc__table thead th {
  background: rgba(15, 20, 28, 0.85);
  color: var(--landing-text);
  font-weight: 700;
}

.legal-doc__table tbody th[scope="row"] {
  width: 26%;
  background: rgba(11, 15, 20, 0.6);
  color: var(--landing-muted);
  font-weight: 600;
}

.legal-doc__nav {
  margin-top: 32px;
  font-size: 13px;
}

/* --- Email verification (/auth/verify) --- */

.auth-verify-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 12px 36px;
  text-align: center;
}

.auth-verify-loading__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(88, 166, 255, 0.2);
  border-top-color: var(--landing-blue);
  border-radius: 50%;
  animation: auth-verify-spin 0.75s linear infinite;
}

@keyframes auth-verify-spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-verify-loading__text {
  margin: 0;
  font-size: 14px;
  color: var(--landing-muted);
  line-height: 1.5;
}

.auth-verify-panel .auth-message {
  margin-top: 0;
}

.auth-verify-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.auth-submit--block {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
}

.auth-btn-secondary {
  display: inline-block;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid rgba(88, 166, 255, 0.35);
  background: transparent;
  color: var(--landing-blue);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.auth-btn-secondary:hover {
  border-color: rgba(88, 166, 255, 0.55);
  background: rgba(88, 166, 255, 0.08);
}

.auth-btn-secondary--block {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.auth-verify-foot {
  margin-top: 20px;
}

.auth-verify-card__brand,
.auth-verify-account__badge {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.auth-verify-card__brand img,
.auth-verify-account__badge img {
  border-radius: 12px;
}

.auth-message--verify {
  margin-bottom: 12px;
}

.auth-verify-redirect-hint {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--landing-muted);
  text-align: center;
  line-height: 1.45;
}

.auth-verify-account-card {
  max-width: 440px;
}

.auth-verify-account__title {
  text-align: center;
}

.auth-verify-account-card .auth-card__lead {
  text-align: center;
}

.auth-verify-account__email {
  margin: 0 0 20px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-align: center;
  border-radius: 8px;
  background: rgba(88, 166, 255, 0.08);
  border: 1px solid rgba(88, 166, 255, 0.22);
  color: var(--landing-text);
}

.auth-verify-account__steps {
  margin: 0 0 22px;
  padding: 0;
}

.auth-verify-account__step {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--landing-muted);
}

.auth-verify-account__step:last-child {
  margin-bottom: 0;
}

.auth-verify-account__resend {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--landing-border);
}

/* Account settings (desk /auth/account.html) */
.auth-card--account {
  max-width: 560px;
}

.auth-account-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--landing-border);
}

.auth-account-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.auth-account-section__title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--landing-muted);
}

.auth-account-muted {
  font-size: 13px;
  color: var(--landing-muted);
  line-height: 1.5;
  margin: 0 0 12px;
}

.auth-account-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.auth-account-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--landing-blue);
  text-decoration: none;
}

.auth-account-links a:hover {
  text-decoration: underline;
}

.auth-account-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--landing-text);
}

.auth-account-checkbox input {
  margin-top: 3px;
  flex-shrink: 0;
}
