/* ============================================
   Club720 Panel — Auth layout (shared)
   Used by: login, two-step verification, forgot password, reset password, register
   ============================================
   Ported from the prototype's auth.css. The prototype pulled Inter from Google Fonts on
   every one of these pages; the panel serves it from this origin instead, so the font
   links in the prototype's markup are gone and nothing here depends on them. */

.auth {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
}

/* ---------- Left: brand ---------- */
.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--sp-7);
  color: #fafafa;                       /* Chatbase: near-black panel */
  background: linear-gradient(160deg, #18181b 0%, #09090b 100%);
  overflow: hidden;
}

/* soft decorative glow */
.auth-brand::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  right: -140px; bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 155, 240, .18), transparent 70%);
  pointer-events: none;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  align-self: flex-start;
}
.auth-logo:hover { text-decoration: none; opacity: .9; }

.auth-logo-text {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -.01em;
}

.auth-story { max-width: 460px; }

.auth-tagline {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #71717a;
  margin-bottom: var(--sp-3);
}

.auth-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: var(--ls-display);
  line-height: 1.15;
  margin-bottom: var(--sp-4);
  color: #fafafa;
}

.auth-sub {
  font-size: var(--fs-lg);        /* 16px */
  line-height: var(--lh-label);   /* 26px */
  color: #a1a1aa;
  margin-bottom: var(--sp-6);
}

.auth-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.auth-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-md);        /* 15px */
  line-height: var(--lh-body);    /* 25px */
  color: #d4d4d8;
}

.point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(29, 155, 240, .2);
  color: var(--primary);
}
.point-icon svg { width: 16px; height: 16px; }

.auth-foot {
  font-size: var(--fs-sm);
  color: #71717a;
}

/* ---------- Right: form panel ---------- */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  background: var(--surface);
  border-left: 1px solid var(--border);
}

/* The card's surface comes from the shared group in `components.css`, which names `.auth-card`; this is
   only its width and roomy padding. */
.auth-card {
  width: 100%;
  max-width: 400px;
  padding: var(--sp-6) var(--sp-5);   /* Chatbase: roomy 20-24px card padding */
}

.auth-card--wide { max-width: 560px; }

.auth-head { margin-bottom: var(--sp-5); }

.auth-head h2 {
  font-size: var(--fs-xl);        /* 22px */
  line-height: var(--lh-title);   /* 30px */
  font-weight: 700;
  letter-spacing: var(--ls-heading);
  margin-bottom: 6px;
}

.auth-head p {
  color: var(--slate);
  font-size: var(--fs-md);        /* 15px */
  line-height: var(--lh-body);
}

/* Forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.auth-form .form-alert { margin-bottom: var(--sp-1); }

/* The sign-in page's own notice, above the form. */
.auth-card > .form-alert { margin-bottom: var(--sp-4); }

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.forgot-link {
  font-size: var(--fs-sm);
  line-height: var(--lh-label);   /* aligns with 26px label line */
  font-weight: 500;
}

.auth-submit { margin-top: var(--sp-2); }

/* ---------- What a link is for ----------
   The accept-invitation screen's three facts - the address the link went to, the role, and when it
   stops working - before the person types anything. A definition list rather than a paragraph because
   these are three label/value pairs, not a sentence: a role is read against its label, and "Email" read
   as prose is a word in the middle of a sentence that happens to be next to the answer.

   The label column is fixed at 108px so the three values line up rather than each starting where its
   label ends, which is what makes a short list scan as a list. */
.auth-facts {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-5);
  padding: var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--canvas-alt);
  font-size: var(--fs-sm);
  line-height: var(--lh-small);
}

.auth-facts dt {
  color: var(--muted);
  font-weight: 500;
}

.auth-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  word-break: break-word;
}

/* `.input-code` is in `components.css` beside the other form controls: the profile's verify screen
   draws it from the signed-in layout, which never loads this sheet. */

/* A control that reads as a link but is a button - "Send a new code" - so an action that acts on
   the screen it is already on can sit inside a sentence without pretending to be navigation. */
.auth-aside {
  font-size: var(--fs-sm);
  line-height: var(--lh-small);
  color: var(--slate);
}
.auth-link-button {
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  font: inherit;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
}
.auth-link-button:hover:not(:disabled) { color: var(--primary-hover); text-decoration: underline; }
.auth-link-button:disabled { color: var(--muted); cursor: not-allowed; }
.auth-link-button:focus-visible { box-shadow: var(--ring); }

/* Footer of the card */
.auth-card-foot {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.register-line {
  font-size: var(--fs-sm);
  line-height: var(--lh-small);
  color: var(--slate);
}
.register-line strong { color: var(--ink); }

.legal {
  font-size: var(--fs-xs);
  line-height: var(--lh-small);
  color: var(--muted);
}
.legal a { color: inherit; }
.legal a:hover { color: var(--primary); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }

  .auth-brand {
    padding: var(--sp-5);
    gap: var(--sp-5);
  }
  .auth-title { font-size: 28px; }
  .auth-sub { font-size: var(--fs-md); margin-bottom: 0; }
  .auth-points { display: none; }
  .auth-foot { display: none; }

  .auth-panel {
    padding: var(--sp-5);
    align-items: flex-start;
    padding-top: var(--sp-6);
  }
}

@media (max-width: 480px) {
  .auth-card { max-width: none; }
  .auth-title br { display: none; }
}
