/* PharmTech.AI — auth pages (login + account). Loaded after styles.css. */

.auth-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 64px 26px 88px;
  min-height: 60vh;
}
.auth-wrap--wide { max-width: 920px; }

.auth-card {
  padding: 40px 36px;
  border-radius: var(--r-lg, 18px);
}

.auth-h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
}
.auth-lead { color: var(--slate); font-size: 1.05rem; line-height: 1.5; margin: 0 0 24px; }
.auth-sub  { color: var(--slate-2); font-size: .92rem; margin: 12px 0 0; }
.auth-fine { color: var(--slate-2); font-size: .86rem; line-height: 1.5; margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }

.auth-label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin: 0 0 8px; }
.auth-input {
  width: 100%;
  font-family: var(--sans);
  font-size: 1.05rem;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm, 8px);
  background: #fff;
  color: var(--ink);
  margin: 0 0 16px;
}
.auth-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(0,113,227,.18); }

.auth-note { border-radius: var(--r-sm, 8px); padding: 14px 16px; font-size: .95rem; line-height: 1.45; margin: 0 0 20px; }
.auth-note--warn { background: #fff6e8; border: 1px solid #f2d49a; color: #7a5300; }
.auth-note--ok   { background: #eaf6ee; border: 1px solid #b7e0c4; color: #1c6b39; }

/* ----- account (members) area ----- */
.account-head { margin: 0 0 30px; }
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.account-tile {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border-radius: var(--r, 12px);
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
a.account-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,17,21,.08); border-color: var(--gold); text-decoration: none; }
.account-tile h3 { font-size: 1.12rem; color: var(--ink); margin: 0 0 8px; }
.account-tile p { color: var(--slate); font-size: .94rem; line-height: 1.5; margin: 0 0 16px; flex: 1; }
.account-cta { font-weight: 600; color: var(--link); font-size: .95rem; }
.account-cta--muted { color: var(--slate-2); }
.account-tile--soon { background: var(--bg-alt); }

.account-data { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.account-data h3 { font-size: 1rem; color: var(--ink); margin: 0 0 8px; }
.account-data p { color: var(--slate); font-size: .92rem; line-height: 1.5; margin: 0; }
.account-data .auth-note { margin-top: 14px; }

@media (max-width: 560px) {
  .auth-card { padding: 30px 22px; }
  .auth-wrap { padding: 40px 18px 64px; }
}

/* A DISABLED SUBMIT MUST LOOK DISABLED. Found on the LIVE site by an
   independent post-deploy review: no `:disabled` or `[disabled]` rule existed in ANY
   stylesheet, so the Turnstile-gated submit button rendered identical to a live one —
   full brand blue, opacity 1, cursor:pointer — while `button.disabled` was true. A
   visitor typed their email, clicked a solid blue button and nothing happened, with no
   feedback of any kind. This affects EVERY visitor during the window before a token
   arrives, not only the ones served an interactive challenge. Disabled controls are
   exempt from the WCAG 1.4.3 contrast minimum, so dimming is safe here. */
.btn:disabled,.btn[disabled],button:disabled,button[disabled]{
  opacity:.5;cursor:not-allowed;box-shadow:none;
}

/* A dead control must not react to the pointer either: .btn--primary:hover otherwise still
   won on `background` and darkened a disabled button on hover (measured rgb(0,113,227) ->
   rgb(0,102,204)). Restated rather than `inherit` so it holds wherever the base rule lives. */
.btn--primary:disabled:hover,.btn--primary[disabled]:hover{
  background:var(--gold,#0071e3);border-color:var(--gold,#0071e3);
}
.btn:disabled:hover,.btn[disabled]:hover,button:disabled:hover,button[disabled]:hover{
  box-shadow:none;transform:none;
}
