/* Login, registration and password reset share the Studio A palette; My Account has its own account.css extension. */
.studio-a .auth-entry {
  display: block;
  min-height: auto;
  padding: 64px 24px 80px;
  background: var(--paper);
}

.auth-entry__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  align-items: center;
  gap: 80px;
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
}

.auth-intro { max-width: 400px; grid-column: 1; grid-row: 1; }
.studio-a .auth-intro__title {
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--ink);
}
.auth-intro__description { margin: 0; color: var(--body); }
.auth-benefits { list-style: none; padding: 0; margin: 32px 0; }
.auth-benefits li { display: flex; align-items: flex-start; gap: 16px; padding-block: 16px; }
.auth-benefits li + li { border-top: 1px solid var(--line); }
.auth-benefits svg { width: 24px; height: 24px; flex: none; color: var(--body); margin-top: 2px; }
.auth-benefits strong { display: block; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.auth-benefits span span { display: block; font-size: .9375rem; color: var(--body); line-height: 1.5; }
.auth-help { margin: 0; font-size: .9375rem; color: var(--body); }
.auth-help a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.auth-help svg { width: 18px; height: 18px; }

.studio-a .auth-entry .auth-card {
  grid-column: 2;
  grid-row: 1;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: none;
  min-width: 0;
}
.auth-entry__heading { margin-bottom: 28px; }
.studio-a .auth-entry .auth-title { font-size: 2rem; line-height: 1.2; margin: 0 0 12px; letter-spacing: -.025em; }
.auth-entry__heading p { margin: 0; font-size: 1rem; color: var(--body); }
.auth-entry .auth-form { gap: 20px; }
.auth-name-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.auth-entry .form-group { gap: 8px; min-width: 0; }
.auth-entry .form-group label { font-weight: 500; font-size: .9375rem; }
.studio-a .auth-entry .form-group input {
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  min-height: 48px;
  padding: 11px 12px;
  box-shadow: none;
}
.auth-entry .form-group input::placeholder { color: var(--muted); opacity: 1; }
.studio-a .auth-entry .form-group input:focus {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  box-shadow: none;
}
/* Match the existing auth error notice colors in light and dark modes. */
.auth-entry .form-group input:user-invalid { border-color: #991b1b; }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.auth-entry .auth-link { font-size: .875rem; }
.auth-password { position: relative; }
.studio-a .auth-entry .auth-password input { padding-right: 76px; }
.auth-password__toggle {
  position: absolute;
  top: 2px;
  right: 4px;
  bottom: 2px;
  min-width: 60px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0 8px;
  background: transparent;
  color: var(--blue);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
}
.auth-password__toggle:hover { background: var(--soft-accent); }
.auth-entry :is(a, button):focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.auth-entry .btn--primary { min-height: 48px; padding: 12px 20px; border-radius: var(--radius-sm); font-size: 1rem; }
.auth-entry .btn[disabled] { cursor: wait; opacity: .7; }
.auth-entry .btn--google { min-height: 48px; padding: 12px; border: 1px solid var(--muted); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.auth-entry .btn--google:hover { background: var(--paper); border-color: var(--body); color: var(--ink); }
.auth-entry .auth-divider { margin-block: 20px; color: var(--muted); }
.auth-entry .auth-footer-text { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--body); font-size: .9375rem; }
.auth-entry a { text-underline-offset: .2em; }
.auth-entry .auth-footer-text a { font-weight: 500; }
.auth-entry .auth-notice { font-size: .9375rem; line-height: 1.5; margin-bottom: 24px; overflow-wrap: anywhere; }
.auth-entry .auth-notice ul { margin: 0; padding-left: 20px; }
.auth-entry .auth-notice a { color: inherit; text-decoration: underline; }
.auth-entry .auth-notice:focus { outline: 2px solid var(--blue); outline-offset: 4px; }
.auth-entry .auth-subtitle { margin-bottom: 20px; }
.auth-password-help, .auth-field-help { margin: 0; font-size: .8125rem; color: var(--muted); }
.auth-entry .password-strength { height: 4px; margin-top: 4px; }
.auth-entry .password-strength__text { color: var(--body); font-size: .8125rem; }
.auth-entry #otp_code { letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.auth-entry [hidden] { display: none; }
html[data-theme='dark'] .auth-entry input:user-invalid { border-color: #ffc3c6; }

@media (max-width: 960px) {
  .auth-entry__layout { gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
  .studio-a .auth-intro__title { font-size: 2.25rem; }
}
@media (max-width: 760px) {
  .studio-a .auth-entry { padding: 32px 20px 48px; }
  .auth-entry__layout { display: flex; flex-direction: column; gap: 28px; max-width: 480px; }
  .auth-entry .auth-card { width: 100%; }
  .studio-a .auth-entry .auth-card { padding: 28px 24px; }
  .auth-intro { max-width: none; width: 100%; }
  .studio-a .auth-intro__title, .auth-intro__description, .auth-benefits { display: none; }
  .auth-help { text-align: center; }
}
@media (max-width: 420px) {
  .studio-a .auth-entry { padding-inline: 16px; }
  .studio-a .auth-entry .auth-card { padding: 24px 20px; }
  .auth-name-fields { grid-template-columns: 1fr; gap: 20px; }
}

/* Turnstile (ADR-0008): room reserved for the managed widget, notice shown without JavaScript. */
.auth-entry .auth-turnstile { min-height: 65px; }
.auth-turnstile__noscript { margin: 0; font-size: .875rem; color: #991b1b; }
html[data-theme='dark'] .auth-turnstile__noscript { color: #ffc3c6; }

/* GDPR first-level information under the Create Account buttons (owner decision 2026-10-09: notice, no checkbox). */
.auth-entry .auth-legal { margin: 20px 0 0; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.auth-entry .auth-legal a { color: var(--body); text-decoration: underline; }
