/* Sign-in and sign-up pages. Same tokens as the marketing site (site-fusion.css + brand.css). */
:root {
  --paper: #F4F4F1; --ink: #111110; --ink-2: #3B3B38; --mute: #77776F; --line: rgba(17, 17, 16, .12);
  --cream: #F6EEE8; --apricot: #FFB08A; --night: #100E0C; --midnight: #0E111A; --err: #A33A12;
  --sans: "DM Sans", ui-sans-serif, system-ui, sans-serif; --serif: "Newsreader", Georgia, serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace; --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }

.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

/* photo side */
.auth-art { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px 48px; background: var(--night); color: var(--cream); }
.auth-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16, 14, 12, .55) 0%, rgba(16, 14, 12, .05) 30%, rgba(16, 14, 12, .2) 58%, rgba(16, 14, 12, .9) 100%); }
.auth-brand img, .auth-mobile-brand img { display: block; height: 26px; width: auto; }
.auth-art h2 { max-width: 11ch; margin: 0 0 18px; font: 400 clamp(42px, 4.4vw, 66px)/1.02 var(--serif); letter-spacing: -.02em; }
.auth-art h2 em { font-style: italic; color: var(--apricot); }
.auth-art p { margin: 0; font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(246, 238, 232, .75); }

/* form side */
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-mobile-brand { display: none; }
.auth-eyebrow { margin: 0 0 14px; font: 400 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.auth-title { margin: 0; font: 400 46px/1.05 var(--serif); letter-spacing: -.02em; }
.auth-sub { margin: 12px 0 32px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field input { height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: 400 16px var(--sans); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.field input::placeholder { color: #A3A39B; }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 176, 138, .45); }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.auth-link { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(17, 17, 16, .3); text-underline-offset: 3px; transition: text-decoration-color .3s var(--ease); }
.auth-link:hover { text-decoration-color: var(--ink); }

.auth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; margin-top: 6px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 16px var(--sans); cursor: pointer; transition: background-color .3s var(--ease), transform .3s var(--ease); }
.auth-btn::after { content: "\2192"; transition: transform .4s var(--ease); }
.auth-btn:hover { background: var(--ink-2); }
.auth-btn:hover::after { transform: translateX(3px); }
.auth-btn:active { transform: scale(.99); }
.auth-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.auth-btn:disabled { opacity: .55; cursor: not-allowed; }
.auth-btn:disabled::after { content: none; }

.error-message { display: none; margin-bottom: 18px; padding: 12px 14px; border: 1px solid rgba(210, 80, 30, .25); border-radius: 12px; background: rgba(210, 80, 30, .08); color: var(--err); font-size: 14px; line-height: 1.45; }
.error-message.show { display: block; }
.error-message a { color: inherit; font-weight: 600; }
.complete-payment-action { margin: -6px 0 18px; }
.complete-payment-btn { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--apricot); color: var(--midnight); font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color .3s var(--ease); }
.complete-payment-btn:hover { background: #FFC3A5; }

.consent-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--mute); }
.consent-note a { color: var(--ink-2); }
.auth-alt { margin: 28px 0 0; font-size: 15px; color: var(--ink-2); }
.auth-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mute); }
.auth-legal a { color: var(--mute); text-decoration: none; }
.auth-legal a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-panel { align-items: flex-start; padding: 28px 16px 40px; }
  .auth-mobile-brand { display: block; margin-bottom: 44px; }
  .auth-mobile-brand img { height: 24px; }
  .auth-title { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.auth-photo-owner { object-position: 12% 35%; }
@media (min-width: 1600px) { .auth-photo-owner { object-position: 0% 35%; } }

/* Short laptop windows: everything fits on one screen, no scrolling. */
@media (min-width: 901px) and (max-height: 880px) {
  .auth { height: 100vh; height: 100dvh; min-height: 0; }
  .auth-panel { padding: 24px 24px; }
  .auth-eyebrow { margin-bottom: 10px; }
  .auth-title { font-size: 38px; }
  .auth-sub { margin: 8px 0 20px; font-size: 15px; }
  .auth-form { gap: 12px; }
  .field { gap: 6px; }
  .field label { font-size: 13.5px; }
  .field input { height: 46px; }
  .auth-btn { height: 48px; margin-top: 2px; }
  .auth-alt { margin-top: 16px; }
  .auth-legal { margin-top: 20px; padding-top: 14px; }
  .error-message { margin-bottom: 12px; padding: 10px 12px; }
}
@media (min-width: 901px) and (max-height: 720px) {
  .auth-title { font-size: 34px; }
  .auth-sub { margin-bottom: 14px; }
  .auth-form { gap: 10px; }
  .field input { height: 42px; }
  .auth-legal { display: none; }
}
