/* Login and registration: a script title page beside the form. */
body.auth { background: var(--slate); min-height: 100%; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; gap: clamp(24px, 5vw, 72px);
  max-width: 1080px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px); }

.title-page { position: relative; aspect-ratio: 8.5 / 11; max-height: calc(100vh - 64px); justify-self: end; width: 100%; max-width: 560px;
  background: var(--paper); border-radius: 2px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
  display: flex; flex-direction: column; align-items: center; padding: 30% 10% 9%; font-family: var(--script); color: var(--ink); text-align: center; }
/* the revision-colour page edges peeking out from behind */
.title-page::before { content: ""; position: absolute; inset: 10px -12px 10px 40px; z-index: -1; border-radius: 2px;
  background: linear-gradient(var(--rev-blue) 0 14%, var(--rev-pink) 0 28%, var(--rev-yellow) 0 42%, var(--rev-green) 0 57%, var(--rev-goldenrod) 0 71%, var(--rev-salmon) 0 85%, var(--rev-cherry) 0); }
.tp-title { font-weight: 700; font-size: clamp(22px, 3.2vw, 34px); letter-spacing: .04em; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.tp-sub { margin-top: 26px; font-size: clamp(14px, 1.6vw, 17px); line-height: 1.6; }
.tp-foot { margin-top: auto; align-self: flex-start; font-size: clamp(12px, 1.3vw, 14px); color: var(--ink-2); }

.auth-card { background: var(--paper); border-radius: var(--radius-m); padding: 8px 28px 28px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); }
.auth-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin: 0 -28px 22px; padding: 0 20px; }
.auth-tabs a { padding: 14px 10px 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.auth-tabs a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--pencil); }
.auth-card h1 { font-family: var(--text); font-size: 26px; font-weight: 650; margin: 0 0 18px; }
.auth-lead { color: var(--ink-2); margin: -8px 0 16px; }
.btn.wide { width: 100%; min-height: 44px; font-size: 16px; }
.auth-note { font-size: 13.5px; color: var(--ink-3); margin: 14px 0 0; text-align: center; }

@media (max-width: 760px) {
  .auth-wrap { grid-template-columns: 1fr; align-items: start; gap: 0; padding: 0 0 32px; }
  .title-page { aspect-ratio: auto; max-width: none; max-height: none; justify-self: stretch; border-radius: 0; padding: 34px 20px 22px; box-shadow: none; }
  .title-page::before { display: none; }
  .tp-sub { margin-top: 12px; }
  .tp-foot { display: none; }
  .auth-card { margin: 16px 12px 0; padding: 4px 20px 24px; }
  .auth-tabs { margin: 0 -20px 20px; padding: 0 12px; }
}
