/* Account pages: a compact product introduction beside the existing auth form. */
body:has(.auth-layout) { background: radial-gradient(circle at 10% 18%, #e6e7ff 0, transparent 36%), radial-gradient(circle at 89% 76%, #e9f7ff 0, transparent 30%), #f8faff; min-height: 100svh; }
body:has(.auth-layout) .site-header { border-color: rgba(113, 128, 170, .16); background: rgba(255,255,255,.65); backdrop-filter: blur(12px); }
body:has(.auth-layout) .header-inner { min-height: 68px; }
body:has(.auth-layout) .brand { font-weight: 700; font-size: 21px; letter-spacing: -.8px; }
body:has(.auth-layout) .brand .icon { width: 29px; height: 29px; padding: 5px; box-sizing: content-box; border-radius: 11px; background: #554cf3; color: #fff; }
body:has(.auth-layout) .back-link { padding: 7px 12px; border: 1px solid #dfe3f4; border-radius: 9px; background: #fff; font-weight: 600; color: #51617d; }
body:has(.auth-layout) .auth-layout { width: min(1230px, calc(100% - 64px)); min-height: calc(100svh - 124px); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .85fr); gap: clamp(38px, 6vw, 105px); padding-block: 32px; align-items: center; }
body:has(.auth-layout) .auth-intro { min-width: 0; }
body:has(.auth-layout) .auth-intro .eyebrow { margin-bottom: 18px; padding: 7px 12px; background: #e8e9ff; font-weight: 700; letter-spacing: 1px; }
body:has(.auth-layout) .auth-intro h1 { max-width: 620px; margin-bottom: 13px; font-size: clamp(38px, 3.8vw, 55px); font-weight: 700; line-height: 1.12; letter-spacing: -2.1px; }
body:has(.auth-layout) .auth-intro h1 span { background: linear-gradient(110deg, #4338ca, #665cff 60%, #159bd0); color: transparent; -webkit-background-clip: text; background-clip: text; }
body:has(.auth-layout) .auth-intro .hero-description { max-width: 570px; margin-bottom: 22px; font-size: 15px; line-height: 1.6; }
.auth-flow { overflow: hidden; border: 1px solid #dce1f7; border-radius: 21px; background: linear-gradient(145deg, #fff 10%, #f3f5ff 100%); box-shadow: 0 20px 50px rgba(62, 63, 135, .09); }
.auth-flow-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 15px 19px 0; color: #5a6687; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.auth-flow-live { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; letter-spacing: 0; }
.auth-flow-live i { width: 7px; height: 7px; border-radius: 50%; background: #35bb8f; }
.auth-flow-track { display: flex; align-items: center; padding: 24px 18px 19px; }
.auth-flow-step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; border: 0; padding: 0; color: #53617f; background: transparent; cursor: pointer; text-align: center; }
.auth-flow-icon { width: clamp(42px, 4vw, 54px); height: clamp(42px, 4vw, 54px); display: grid; place-items: center; border: 1px solid #e0e5f4; border-radius: 15px; background: #fff; color: #666c9a; box-shadow: 0 5px 14px rgba(44,55,104,.04); transition: transform .25s, background .25s, color .25s, box-shadow .25s; }
.auth-flow-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-flow-step:hover .auth-flow-icon, .auth-flow-step[aria-pressed="true"] .auth-flow-icon { transform: translateY(-4px); background: #5a50ed; border-color: #5a50ed; color: #fff; box-shadow: 0 9px 22px rgba(87,74,229,.24); }
.auth-flow-step strong { font-size: 11px; line-height: 1.25; white-space: nowrap; }
.auth-flow-step small { font-size: 10px; color: #91a0ba; line-height: 1.2; }
.auth-flow-step[aria-pressed="true"] strong { color: #4439cd; }
.auth-flow-connector { flex: 0 1 26px; min-width: 8px; height: 2px; margin: -31px 2px 0; background: linear-gradient(90deg, #aaa8f5, #d8dff5); position: relative; }
.auth-flow-connector::after { content: ''; position: absolute; right: -1px; top: -3px; border: 4px solid transparent; border-left-color: #aaa8f5; }
.auth-flow-detail { min-height: 86px; display: flex; gap: 15px; padding: 17px 20px; border-top: 1px solid #e7eaf7; background: rgba(255,255,255,.72); }
.auth-flow-detail-index { flex: 0 0 auto; color: #5b50e8; font-size: 11px; font-weight: 700; letter-spacing: .7px; }
.auth-flow-detail strong { display: block; margin-bottom: 2px; color: #263253; font-size: 13px; }
.auth-flow-detail p { margin: 0; color: #62718f; font-size: 12px; line-height: 1.45; }
.auth-demo-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 17px; color: #4d44d5; font-size: 13px; font-weight: 700; }
.auth-demo-link:hover { text-decoration: underline; text-underline-offset: 4px; }
body:has(.auth-layout) .auth-card { position: relative; width: 100%; max-width: 440px; justify-self: end; padding: clamp(28px, 3vw, 38px); border: 1px solid #e2e6f4; border-radius: 23px; box-shadow: 0 28px 70px rgba(37,49,100,.11); }
.auth-card-mark { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 11px; background: #edeaff; color: #5d50ea; font-size: 24px; font-weight: 700; line-height: 1; }
body:has(.auth-layout) .auth-card .eyebrow { margin-bottom: 5px; color: #584de2; font-weight: 700; letter-spacing: 1.1px; }
body:has(.auth-layout) .auth-card h2 { font-size: 32px; font-weight: 700; letter-spacing: -1.1px; }
body:has(.auth-layout) .auth-description { margin-bottom: 25px; font-size: 13px; }
body:has(.auth-layout) .auth-field { margin-bottom: 16px; }
body:has(.auth-layout) .auth-field label { font-size: 12px; font-weight: 700; color: #33415e; }
body:has(.auth-layout) .auth-input-wrap input { height: 50px; padding-left: 44px; border-color: #d9dfef; border-radius: 11px; background: #fbfcff; transition: border-color .2s, box-shadow .2s, background .2s; }
body:has(.auth-layout) .auth-input-wrap input:hover:not(:disabled) { border-color: #a9a5ef; }
body:has(.auth-layout) .auth-input-wrap input:focus { outline: none; background: #fff; border-color: #675df3; box-shadow: 0 0 0 4px rgba(103,93,243,.12); }
body:has(.auth-layout) .auth-input-wrap input[aria-invalid="true"] { border-color: #c43644; }
.auth-input-icon { position: absolute; left: 15px; top: 15px; width: 20px; height: 20px; pointer-events: none; fill: none; stroke: #8b98b0; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-input-wrap:focus-within .auth-input-icon { stroke: #5a50ed; }
body:has(.auth-layout) .password-toggle { top: 9px; right: 8px; min-width: 42px; min-height: 32px; font-weight: 700; color: #5b51dc; }
body:has(.auth-layout) .auth-submit { position: relative; min-height: 50px; margin-top: 4px; border-radius: 11px; background: linear-gradient(105deg, #5d4ff1, #474fe5); font-weight: 700; box-shadow: 0 8px 18px rgba(86,80,226,.21); }
body:has(.auth-layout) .auth-submit:hover:not(:disabled) { background: linear-gradient(105deg, #4e42df, #3942cf); box-shadow: 0 10px 23px rgba(86,80,226,.28); }
.auth-submit-arrow { position: absolute; right: 17px; }
.auth-spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; }
#auth-form[aria-busy="true"] .auth-spinner { display: inline-block; animation: auth-spin .8s linear infinite; }
#auth-form[aria-busy="true"] .auth-submit-arrow { display: none; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
body:has(.auth-layout) .auth-links { justify-content: space-between; gap: 8px; margin-top: 21px; padding-top: 16px; }
body:has(.auth-layout) .auth-links a { align-items: flex-start; font-weight: 600; }
body:has(.auth-layout) .site-footer { padding-block: 6px 14px; }
body:has(.auth-layout) .footer-brand { font-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  body:has(.auth-layout) .auth-intro { animation: auth-enter .32s ease-out both; }
  body:has(.auth-layout) .auth-card { animation: auth-enter .32s ease-out .08s both; }
  .auth-flow-detail { transition: background-color .25s; }
  @keyframes auth-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) { .auth-flow-icon, .auth-submit { animation: none !important; transition: none !important; } }
@media (max-width: 950px) {
  body:has(.auth-layout) .auth-layout { gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); }
  body:has(.auth-layout) .auth-intro h1 { font-size: 38px; }
  body:has(.auth-layout) .auth-card { padding: 26px; }
}
@media (max-width: 760px) {
  body:has(.auth-layout) .auth-layout { width: min(560px, calc(100% - 36px)); min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 30px; }
  body:has(.auth-layout) .auth-card { order: -1; }
  body:has(.auth-layout) .auth-intro h1 { max-width: 530px; font-size: clamp(34px, 7vw, 43px); }
  body:has(.auth-layout) .auth-card { justify-self: stretch; max-width: none; }
  body:has(.auth-layout) .header-inner { min-height: 62px; }
}
@media (max-width: 430px) {
  body:has(.auth-layout) .auth-intro .eyebrow { font-size: 10px; }
  body:has(.auth-layout) .auth-intro h1 { font-size: 35px; }
  .auth-flow-track { padding: 19px 9px 16px; }
  .auth-flow-icon { width: 41px; height: 41px; }
  .auth-flow-icon svg { width: 21px; height: 21px; }
  .auth-flow-step strong { font-size: 10px; }
  .auth-flow-step small { font-size: 9px; }
  .auth-flow-head { padding-inline: 14px; font-size: 9px; }
  body:has(.auth-layout) .auth-card { padding: 24px 20px; }
  body:has(.auth-layout) .auth-links { gap: 8px 12px; }
}
