/* Login + legal pages: the landing page's language (mono index labels, light display type, hairlines, off-white CTA) on the
   shared marketing chrome (.mk-* in /styles.css). */
.auth-body { background: var(--page-mk); }
.auth-page { display: flex; flex-direction: column; min-height: 100vh; }
.auth-main { flex: 1; padding-top: clamp(48px, 9vh, 104px); padding-bottom: clamp(64px, 11vh, 128px); }

.auth-label { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; color: var(--text-3); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.auth-label > span { flex: none; white-space: nowrap; }
.auth-label::after { content: ""; flex: 0 1 220px; min-width: 24px; height: 1px; background: var(--line); }
.auth-index { color: var(--text-4); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.auth-title { margin: 0; color: var(--text); font-size: clamp(40px, 4.2vw, 60px); font-weight: 400; letter-spacing: -.025em; line-height: 1.04; }
.auth-lede { max-width: 430px; margin: 22px 0 0; color: var(--text-2); font-size: 16px; line-height: 1.6; }

/* Login: copy left, form card right (the landing hero's split), stacked on narrow screens. */
.auth-login-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: start; gap: clamp(40px, 7vw, 120px); max-width: 1180px; }
.auth-card { position: relative; padding: 30px 30px 26px; border: 1px solid var(--line-strong); border-radius: var(--r-2); background: var(--card); }
/* Hairline corner accent echoing the landing page's frame lines. */
.auth-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 18px; height: 18px; border-top: 1px solid var(--line-hover); border-left: 1px solid var(--line-hover); border-top-left-radius: var(--r-2); pointer-events: none; }
.auth-field-label { display: block; margin-bottom: 9px; color: var(--text-3); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.auth-field { position: relative; }
.auth-field .icon { position: absolute; top: 50%; left: 13px; width: 15px; height: 15px; color: var(--text-4); translate: 0 -50%; pointer-events: none; transition: color var(--dur-2) var(--ease-out); }
.auth-field:focus-within .icon { color: var(--text-2); }
.auth-field input { height: 46px; padding-left: 39px; font-size: 15px; }
.auth-submit { --h: 46px; margin-top: 16px; }
.auth-submit[aria-busy="true"] { cursor: progress; }
.auth-notice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-2); background: rgb(255 255 255 / .015); color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.auth-notice .icon { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--ok); }
.auth-foot { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line-faint); color: var(--text-3); font-size: 13.5px; }
.auth-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; }
.auth-foot a .icon { width: 13px; height: 13px; transition: translate var(--dur-2) var(--ease-out); }
.auth-foot a:hover .icon { translate: 2px 0; }

/* Demo booking */
.demo-grid { max-width: 1180px; }
.demo-fields { display: grid; gap: 14px; }
.demo-fields .auth-field-label { margin: 0; }
.demo-fields .auth-field-label:not(:first-child) { margin-top: 2px; }
.demo-fields .auth-field-label span { color: var(--text-4); font-family: var(--font); font-size: 11px; letter-spacing: 0; text-transform: none; }
.demo-note { margin: 12px 0 0; color: var(--text-4); font-size: 12.5px; line-height: 1.5; text-align: center; }
.demo-points { display: grid; gap: 13px; margin: 30px 0 0; padding: 0; list-style: none; }
.demo-points li { display: flex; align-items: center; gap: 11px; color: var(--text-2); font-size: 14px; }
.demo-points .icon { width: 17px; height: 17px; color: var(--text-3); }
.demo-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.demo-success p { margin: 0 0 20px; color: var(--text-2); font-size: 15px; line-height: 1.65; }
.demo-success a:not(.btn) { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.auth-notice.is-error .icon { color: var(--danger); }

/* Legal: readable long-form measure with numbered sections. */
.legal { max-width: 760px; }
.legal-date { margin: 16px 0 0; color: var(--text-3); font-size: 13.5px; }
.legal-date time { color: var(--text-2); }
.legal-switch { display: flex; gap: 26px; margin-top: 30px; border-bottom: 1px solid var(--line); }
.legal-switch a { margin-bottom: -1px; padding: 11px 0; border-bottom: 1px solid transparent; color: var(--text-3); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
.legal-switch a:hover { color: var(--text); }
.legal-switch a[aria-current="page"] { border-bottom-color: var(--text); color: var(--text); }
.legal-section { padding: 30px 0; border-bottom: 1px solid var(--line-faint); }
.legal-section h2 { display: flex; align-items: baseline; gap: 18px; margin: 0; color: var(--text); font-size: 20px; font-weight: 400; letter-spacing: -.005em; line-height: 1.3; }
.legal-section h2 .auth-index { flex: none; width: 22px; }
.legal-copy { padding-left: 40px; }
.legal-copy p { margin: 12px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.7; }
.legal-copy a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-hover); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-copy a:hover { text-decoration-color: currentColor; }

@media (max-width: 900px) {
  .auth-login-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 560px; }
  .auth-lede { max-width: none; }
}
@media (max-width: 560px) {
  .auth-card { padding: 22px 18px 20px; }
  .legal-section { padding: 24px 0; }
  .legal-section h2 { gap: 12px; font-size: 18px; }
  .legal-copy { padding-left: 0; }
}
