
.ft-auth .hero-art { position: absolute; inset: 0; transform-origin: 53% 65%; animation: ft-scene-arrive calc(1.8s * var(--intro-scale)) cubic-bezier(.17,.68,.21,1) both, ft-hero-float 8s ease-in-out calc(1.8s * var(--intro-scale)) infinite; }
.ft-auth .scene-image { position: absolute; inset: 0; width: 1672px; height: 591px; display: block; mask-image: linear-gradient(transparent 0%, #000 6%, #000 86%, transparent 99.6%); -webkit-mask-image: linear-gradient(transparent 0%, #000 6%, #000 86%, transparent 99.6%); }
.ft-auth .energy-bloom { position: absolute; left: 380px; top: -75px; width: 900px; height: 740px; background: radial-gradient(ellipse, transparent 31%, #05d4c808 39%, #32ffea14 47%, transparent 63%); mix-blend-mode: screen; animation: ft-bloom 3.8s ease-in-out infinite; pointer-events: none; }
.ft-auth .light-shaft { position: absolute; height: 2px; background: linear-gradient(90deg, transparent, #8dfff399, #b4fff7, transparent); filter: blur(1px); opacity: 0; transform-origin: 0 50%; mix-blend-mode: screen; pointer-events: none; }
.ft-auth .shaft-one { top: 320px; left: 170px; width: 1320px; transform: rotate(10deg); animation: ft-shaft-pass 6.5s ease-in-out 1.3s infinite; }
.ft-auth .shaft-two { top: 550px; left: 60px; width: 1450px; transform: rotate(-15deg); animation: ft-shaft-pass 7.3s ease-in-out 3.1s infinite; }
.ft-auth .energy-rings { position: absolute; inset: 0; width: 1672px; height: 591px; overflow: visible; pointer-events: none; mix-blend-mode: screen; }

/* Occlude the existing passing light and arrival halo behind the solid object.
   This wrapper stays untransformed in artwork space; its children keep all of
   their original animation, position, blur, speed and colours. */
.ft-auth .ft-behind-calendar {
  position: absolute;
  inset: 0;
  width: 1672px;
  height: 591px;
  pointer-events: none;
  -webkit-mask: url(#ft-behind-calendar);
  mask: url(#ft-behind-calendar);
  mix-blend-mode: screen;
}

.ft-auth .ring-a { animation: ft-ring-a 4.2s linear infinite; }
.ft-auth .ring-b { animation: ft-ring-b 7.8s linear infinite; }
.ft-auth .ring-outer { animation: ft-ring-b 32s linear infinite reverse; }
.ft-auth .ring-orbit { animation: ft-ring-orbit 5.7s linear infinite reverse; }
.ft-auth .glow-copy { opacity: .4; }
.ft-auth .page-bed { position: absolute; inset: 0; perspective: 1100px; perspective-origin: 580px 150px; pointer-events: none; }
.ft-auth .calendar-page { position: absolute; left: 444px; top: 109px; width: 311px; height: 282px; transform-origin: 76% 8%; transform-style: preserve-3d; }
.ft-auth .date-print { position: absolute; left: 100px; top: 118px; width: 145px; color: #06424b; transform: matrix(.96,-.24,-.21,1,0,0); transform-origin: 0 0; text-align: center; text-shadow: 0 1px 1px #d6ffff40; }
.ft-auth .month { display: block; font-size: 30px; font-weight: 500; line-height: 1.1; letter-spacing: -.8px; }
.ft-auth .day { display: block; font-size: 99px; font-weight: 650; letter-spacing: -5px; line-height: 1.04; font-variant-numeric: tabular-nums; }
.ft-auth .previous-date { position: absolute; left: 424px; top: 171px; width: 102px; color: #125865; text-align: center; transform: matrix(.94,-.25,.045,.98,0,0); transform-origin: 0 0; opacity: .8; filter: blur(.3px); }
.ft-auth .previous-date .month { font-size: 24px; }
.ft-auth .previous-date .day { font-size: 69px; font-weight: 650; letter-spacing: -3px; }


.ft-auth .background-dates { position: absolute; inset: 0; width: 1672px; height: 591px; pointer-events: none; mask-image: linear-gradient(transparent 0%, #000 6%, #000 86%, transparent 99.6%); -webkit-mask-image: linear-gradient(transparent 0%, #000 6%, #000 86%, transparent 99.6%); }
.ft-auth .background-date { position: absolute; text-align: center; color: #0b4a55; transform: matrix(.94,-.25,.045,.98,0,0); transform-origin: 0 0; }
.ft-auth .background-date .month { font-weight: 500; letter-spacing: -.35px; line-height: 1.15; }
.ft-auth .background-date .day { font-weight: 650; letter-spacing: -2px; line-height: 1.04; }
.ft-auth .background-date-6 { left: 96px; top: 49px; width: 29px; opacity: .6; filter: blur(2.2px); }
.ft-auth .background-date-6 .month { font-size: 8px; }
.ft-auth .background-date-6 .day { font-size: 22px; letter-spacing: -1px; }
.ft-auth .background-date-5 { left: 140px; top: 62px; width: 44px; opacity: .69; filter: blur(1.9px); }
.ft-auth .background-date-5 .month { font-size: 11px; }
.ft-auth .background-date-5 .day { font-size: 35px; }
.ft-auth .background-date-4 { left: 197px; top: 94px; width: 48px; opacity: .76; filter: blur(1.55px); }
.ft-auth .background-date-4 .month { font-size: 13px; }
.ft-auth .background-date-4 .day { font-size: 42px; }
.ft-auth .background-date-3 { left: 250px; top: 119px; width: 57px; opacity: .82; filter: blur(1.15px); }
.ft-auth .background-date-3 .month { font-size: 15px; }
.ft-auth .background-date-3 .day { font-size: 49px; }
.ft-auth .background-date-2 { left: 326px; top: 143px; width: 68px; opacity: .87; filter: blur(.85px); }
.ft-auth .background-date-2 .month { font-size: 18px; }
.ft-auth .background-date-2 .day { font-size: 59px; letter-spacing: -3px; }

.ft-auth .flying-page { background: url('/images/login/scene-2.webp') center / 100% 100% no-repeat; animation: ft-page-depart calc(1.22s * var(--intro-scale)) cubic-bezier(.3,.05,.55,1) both; filter: drop-shadow(8px 18px 9px #000c); will-change: transform, opacity; }
.ft-auth .flying-page::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, #e8fffdaa, transparent 45%, #003f4866); mask: url('/images/login/scene-2.webp') center / contain no-repeat; -webkit-mask: url('/images/login/scene-2.webp') center / contain no-repeat; opacity: 0; animation: ft-paper-light calc(1.22s * var(--intro-scale)) ease-in-out both; pointer-events: none; }
.ft-auth .clock { position: absolute; left: 758px; top: 228px; width: 240px; height: 240px; pointer-events: none; }
.ft-auth .clock-glass { position: absolute; inset: 32px 29px; border-radius: 50%; background: radial-gradient(circle, #00232780 0%, #003b4070 65%, #00505a00 100%); box-shadow: inset 0 0 16px #01465155; }
.ft-auth .clock-energy { position: absolute; inset: 18px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 35%, #21ffdc00 65%, #1cffdd26 85%, #83fff2a0 99%, transparent); mask: radial-gradient(circle, transparent 45%, #000 67%, transparent 70%); -webkit-mask: radial-gradient(circle, transparent 45%, #000 67%, transparent 70%); mix-blend-mode: screen; animation: ft-clock-energy .68s linear infinite, ft-clock-trails-out calc(.8s * var(--intro-scale)) ease calc(6.3s * var(--intro-scale)) both; }
.ft-auth .clock-hands { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ft-auth .hand { transform-origin: 0 0; transform: rotate(var(--angle)); animation: ft-wind-clock calc(6.5s * var(--intro-scale)) cubic-bezier(.15,.68,.14,1) calc(.4s * var(--intro-scale)) both; }
.ft-auth .hour { --angle: var(--hour-angle); --turns: 1440deg; }
.ft-auth .minute { --angle: var(--minute-angle); --turns: 4320deg; }
.ft-auth .second { --angle: var(--second-angle); --turns: 7200deg; opacity: .76; }
.ft-auth .ft-ready .hand { animation: none; }
.ft-auth .ft-ready .clock-energy { opacity: 0; animation: none; }
.ft-auth .arrival-ring { position: absolute; left: 644px; top: 116px; width: 470px; height: 470px; border: 1.5px solid #8ffff0; border-radius: 50%; opacity: 0; pointer-events: none; }
.ft-auth .ft-ready .arrival-ring { animation: ft-arrived 1.5s ease-out both; }
.ft-auth .particles { position: absolute; inset: 0; pointer-events: none; }
.ft-auth .particle { position: absolute; left: var(--x); top: var(--y); width: var(--size); height: var(--size); border-radius: 50%; background: #aafff1; box-shadow: 0 0 7px #28ffdeaa; animation: ft-particle-drift var(--duration) ease-in-out var(--delay) infinite; opacity: 0; }
.ft-auth .stage-fade { display: none; }

@keyframes ft-scene-arrive { from { opacity: 0; transform: scale(1.11) translateY(14px); filter: blur(7px); } to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); } }
@keyframes ft-hero-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ft-ambient-breath { from { transform: scale(.94); opacity: .3; } to { transform: scale(1.08); opacity: .6; } }
@keyframes ft-bloom { 0%,100% { opacity: .38; transform: scale(.98); } 50% { opacity: .85; transform: scale(1.04); } }
@keyframes ft-shaft-pass { 0%,25%,100% { opacity: 0; } 40% { opacity: .12; } 52% { opacity: .5; } 65% { opacity: .05; } }
@keyframes ft-ring-a { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1521; } }
@keyframes ft-ring-b { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 1772; } }
@keyframes ft-ring-orbit { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 2488; } }
@keyframes ft-page-depart {
  0% { transform: translate3d(0,0,0) rotateX(0) rotateZ(0) scale(1); opacity: 1; }
  15% { transform: translate3d(-12px,-7px,40px) rotateX(-22deg) rotateZ(-3deg) scale(1.02); opacity: 1; }
  44% { transform: translate3d(-122px,-56px,60px) rotateX(-58deg) rotateZ(-12deg) scale(.88); opacity: .96; }
  74% { transform: translate3d(-300px,-158px,-30px) rotateX(-124deg) rotateZ(-23deg) scale(.64); opacity: .7; }
  100% { transform: translate3d(-530px,-265px,-170px) rotateX(-172deg) rotateZ(-36deg) scale(.33); opacity: 0; }
}
@keyframes ft-paper-light { 0% { opacity: 0; } 35% { opacity: .7; } 75% { opacity: .2; } 100% { opacity: 0; } }
@keyframes ft-wind-clock { from { transform: rotate(calc(var(--angle) - var(--turns))); } to { transform: rotate(var(--angle)); } }
@keyframes ft-clock-energy { to { transform: rotate(360deg); } }
@keyframes ft-clock-trails-out { to { opacity: 0; } }
@keyframes ft-arrived { 0% { transform: scale(.65); opacity: .75; filter: blur(0); } 100% { transform: scale(1.7); opacity: 0; filter: blur(4px); } }
@keyframes ft-particle-drift { 0%,100% { opacity: 0; transform: translate3d(0,18px,0) scale(.2); } 24% { opacity: .55; } 65% { opacity: .18; } 95% { opacity: 0; transform: translate3d(var(--drift),-60px,0) scale(.75); } }
@keyframes ft-copy-arrive { from { opacity: 0; filter: blur(3px); } to { opacity: 1; filter: blur(0); } }
@keyframes ft-dot-pulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes ft-progress-sheen { to { transform: translateX(100%); } }

/* Component layout. Load after your existing site.css on the sign-in page only. */
body.account-layout:has(.ft-auth) {
  --ft-surface: #f5f8fa;
  --ft-login-background: linear-gradient(105deg, #e4e8eb 0%, #f1f3f5 52%, #fff 100%);
  --ft-text: #133043;
  --ft-muted: #4d606b;
  --ft-line: #dfe7ec;
  --ft-accent: #00847f;
  --ft-accent-hover: #006d69;
  --ft-tint: #e5f2f0;
  --ft-button-shadow: 0 7px 18px #007c7714;
}
html[data-theme="dark"] body.account-layout:has(.ft-auth) {
  --ft-surface: #101b24;
  --ft-login-background: #101b24;
  --ft-text: #ecf5f6;
  --ft-muted: #a1b4bf;
  --ft-line: #2a3c46;
  --ft-accent: #45d2bd;
  --ft-accent-hover: #69e3d0;
  --ft-tint: #163a3d;
  --ft-button-shadow: 0 7px 24px #0003;
}
/* Only the account layout containing this component is affected. */
body.account-layout:has(.ft-auth) { background: var(--ft-login-background, var(--ft-surface)); color: var(--ft-text); }
body.account-layout:has(.ft-auth) .app-workspace { display: block; }
body.account-layout:has(.ft-auth) .main-content { width: 100%; max-width: none; margin: 0; padding: 0; }
.ft-auth, .ft-auth * { box-sizing: border-box; }
.ft-auth {
  --intro-scale: 0.3409090909090909;
  --hour-angle: 120deg; --minute-angle: 0deg; --second-angle: 90deg;
  --ft-scene-scale: .58;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(400px, .85fr);
  min-height: calc(100svh - var(--ft-header-height, 80px));
  padding: 0 24px 24px;
  gap: 0;
  color: var(--ft-text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ft-auth button { font: inherit; -webkit-tap-highlight-color: transparent; }
.ft-auth [hidden] { display: none !important; }
.ft-auth button:focus-visible { outline: 3px solid var(--ft-accent); outline-offset: 5px; }
.ft-hero {
  position: relative;
  min-width: 0;
  min-height: 602px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  padding: clamp(32px, 3vw, 56px) clamp(30px, 3.25vw, 60px) 26px;
  background: radial-gradient(ellipse at 60% 61%, #043c3e 0%, #042c30 24%, #011c21 48%, #00141a 84%);
  border: 1px solid #1751515e;
  box-shadow: 0 12px 38px #10323c09, inset 0 1px 0 #79ead314;
  color: #eafff9;
}
.ft-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 80% 1%, #25bcb013, transparent 50%), radial-gradient(ellipse at 10% 100%, #00687820, transparent 55%);
}
.ft-hero-heading { position: relative; z-index: 3; flex: 0 0 auto; pointer-events: none; }
.ft-kicker { display: flex; align-items: center; gap: 11px; margin: 0 0 21px; color: #94c1bf; font-size: 9px; font-weight: 600; letter-spacing: 2.7px; line-height: 1.6; }
.ft-kicker > span { width: 24px; height: 1px; background: #48d7c1; }
.ft-hero-heading h2 { margin: 0; color: #f0fffc; font-size: clamp(43px, 4.04vw, 76px); font-weight: 450; letter-spacing: -2.8px; line-height: 1.07; }
.ft-hero-heading em { font-style: normal; font-weight: 400; color: #71e8d4; }
.ft-art-frame { position: relative; flex: 1 1 auto; min-height: 276px; margin: -12px calc(-1 * clamp(30px, 3.25vw, 60px)) -10px; }
.ft-scene { position: absolute; left: 50%; top: 50%; width: 1672px; height: 591px; transform: translate(-50%, -50%) scale(var(--ft-scene-scale)); transform-origin: 50% 50%; perspective: 1200px; }
.ft-hero-foot { position: relative; z-index: 3; flex: 0 0 auto; }
.ft-hero-caption { margin: 8px 0 28px; font-size: 17px; font-weight: 350; color: #b8dcd5; letter-spacing: .35px; }
.ft-scene-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #5bad9b2e; padding-top: 17px; min-height: 52px; }
.ft-motion-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; min-width: 32px; min-height: 32px; border: 1px solid transparent; border-radius: 8px; padding: 0; background: transparent; color: #a1c9c0; opacity: .72; cursor: pointer; transition: background .2s, color .2s, border-color .2s, opacity .2s; }
.ft-motion-toggle:hover { color: #e4fff6; background: #19463c80; border-color: #67c9b077; opacity: 1; }
.ft-motion-toggle svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ft-motion-toggle:focus-visible { outline-color: #82efd4 !important; }
.ft-entry { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; padding: 56px clamp(28px, 4.9vw, 98px) 105px; }
.ft-sign-in-card { width: 100%; max-width: 400px; }
.ft-welcome-mark { display: flex; align-items: center; justify-content: center; width: 55px; height: 55px; background: var(--ft-tint); color: var(--ft-accent); border: 1px solid #219d901c; border-radius: 15px; margin-bottom: 31px; }
.ft-welcome-mark svg { width: 30px; height: 30px; }
.ft-form-kicker { margin: 0 0 11px; color: var(--ft-accent); font-size: 10px; font-weight: 650; letter-spacing: 2.05px; line-height: 1.5; }
.ft-auth .ft-sign-in-card h1 { margin: 0; color: var(--ft-text); font-size: clamp(34px, 3vw, 48px); line-height: 1.15; font-weight: 650; letter-spacing: -1.7px; }
.ft-sign-in-card h1 > span { color: var(--ft-accent); }
.ft-intro { margin: 17px 0 31px; font-size: 15px; line-height: 1.8; color: var(--ft-muted); }
.ft-form { margin: 0; width: 100%; }
.ft-sign-in-button {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 58px; padding: 11px 18px;
  border-radius: 11px; border: 1px solid transparent;
  background: var(--ft-accent); color: #fff;
  font-size: 14px !important; font-weight: 650 !important;
  box-shadow: var(--ft-button-shadow); cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .2s;
}
.ft-sign-in-button:hover { background: var(--ft-accent-hover); transform: translateY(-1px); box-shadow: 0 9px 22px #007c7722; }
.ft-sign-in-button:active { transform: translateY(0); }
.ft-sign-in-button > span:nth-child(2) { flex: 1; text-align: left; }
.ft-ms-tile { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; background: #fff; border-radius: 4px; flex-shrink: 0; }
.ft-ms-mark { display: block; width: 18px; height: 18px; }
.ft-sign-in-button > svg { flex-shrink: 0; width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .8; transition: transform .2s; }
.ft-sign-in-button:hover > svg { transform: translateX(3px); }
html[data-theme="dark"] .ft-sign-in-button { color: #062a28; }
.ft-account-note { margin: 13px 0 0; font-size: 13px; color: var(--ft-muted); text-align: center; line-height: 1.7; }
.ft-help { margin-top: 31px; padding-top: 21px; border-top: 1px solid var(--ft-line); }
.ft-help-toggle { padding: 4px 0; width: 100%; min-height: 32px; border: 0; display: flex; gap: 8px; align-items: center; color: var(--ft-muted); background: transparent; text-align: left; font-size: 13px !important; cursor: pointer; }
.ft-help-toggle:hover { color: var(--ft-accent); }
.ft-help-toggle svg { width: 16px; height: 16px; flex: 0 0 16px; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ft-help-toggle .ft-help-chevron { margin-left: auto; transition: transform .2s; }
.ft-help-toggle[aria-expanded="true"] .ft-help-chevron { transform: rotate(180deg); }
.ft-help-content { color: var(--ft-muted); font-size: 13px; line-height: 1.6; margin: 10px 0 0 24px; }
.ft-feedback { margin-top: 18px; padding: 13px 15px; border: 1px solid var(--ft-line); background: var(--ft-tint); color: var(--ft-text); border-radius: 9px; font-size: 12px; line-height: 1.8; }
.ft-entry-footer { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap; color: var(--ft-muted); font-size: 10px; letter-spacing: .1px; }
.ft-preview-label { flex-basis: 100%; text-align: center; font-size: 9px; margin-top: 1px; opacity: .85; }
.ft-nojs-note { margin: 0; padding: 12px 24px; font: 13px/1.6 "Segoe UI", sans-serif; color: var(--ft-text); background: var(--ft-tint); text-align: center; }
/* Fade the original image's incidental side captions, without replacing the artwork.
   The actual date printing is a separate HTML layer and remains intact. */
.ft-auth .scene-image {
  -webkit-mask-image: linear-gradient(transparent 0%, #000 9%, #000 85%, transparent 99.6%), radial-gradient(ellipse 240px 150px at 140px 415px, transparent 64%, #000 100%), radial-gradient(ellipse 250px 175px at 1540px 118px, transparent 66%, #000 100%);
  mask-image: linear-gradient(transparent 0%, #000 9%, #000 85%, transparent 99.6%), radial-gradient(ellipse 240px 150px at 140px 415px, transparent 64%, #000 100%), radial-gradient(ellipse 250px 175px at 1540px 118px, transparent 66%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.ft-sign-in-button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
/* Calm idle motion. Only the three-second entrance spins/flips quickly. */
.ft-auth .hero-art { animation-duration: calc(1.8s * var(--intro-scale)), 12s; }
.ft-auth .ring-a { animation-duration: 11s; }
.ft-auth .ring-b { animation-duration: 21s; }
.ft-auth .ring-orbit { animation-duration: 18s; }
.ft-auth .energy-rings { opacity: .74; }
.ft-auth .light-shaft { opacity: .12; }
.ft-auth .energy-bloom { animation-duration: 9s; }
.ft-auth .ft-paused *, .ft-auth .ft-paused *::before, .ft-auth .ft-paused *::after { animation-play-state: paused !important; }
/* Keep the idle float animation's current timeline once the intro settles. Removing
   only the arrival effect prevents it replaying when users resume from pause. */
.ft-auth .ft-ready .hero-art { animation-name: none, ft-hero-float; opacity: 1; filter: none; }
.ft-auth .ft-paused .hero-art { opacity: 1; filter: none; }
.ft-auth .ft-reduced .particles, .ft-auth .ft-reduced .clock-energy, .ft-auth .ft-reduced .arrival-ring, .ft-auth .ft-reduced .flying-page, .ft-auth .ft-reduced .light-shaft { display: none !important; }
.ft-auth .ft-reduced *, .ft-auth .ft-reduced *::before, .ft-auth .ft-reduced *::after { animation: none !important; }
.ft-auth .ft-reduced .hero-art { opacity: 1; filter: none; }
.ft-auth .ft-reduced .hand.second { display: none; }
.ft-auth .ft-ready .arrival-ring { animation-duration: 1.8s; }
@media (min-width: 1650px) {
  .ft-entry { padding-inline: clamp(65px, 6.4vw, 140px); }
  .ft-sign-in-card { max-width: 414px; }
  .ft-intro { font-size: 16px; }
}
@media (min-width: 901px) and (max-height: 760px) {
  .ft-hero { min-height: 552px; padding-top: 28px; padding-bottom: 20px; }
  .ft-kicker { margin-bottom: 15px; }
  .ft-hero-heading h2 { font-size: clamp(42px, 3.5vw, 60px); }
  .ft-art-frame { min-height: 265px; }
  .ft-hero-caption { margin-bottom: 17px; font-size: 15px; }
  .ft-entry { padding-top: 38px; padding-bottom: 80px; }
  .ft-welcome-mark { margin-bottom: 23px; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .ft-auth { grid-template-columns: minmax(0, 1.1fr) minmax(365px, .9fr); padding-inline: 18px; }
  .ft-entry { padding-inline: 32px; }
  .ft-hero { padding-inline: 28px; }
  .ft-art-frame { margin-inline: -28px; }
  .ft-kicker { font-size: 8px; letter-spacing: 1.8px; }
  .ft-hero-heading h2 { font-size: 43px; letter-spacing: -1.9px; }
}
@media (max-width: 900px) {
  .ft-auth { grid-template-columns: 1fr; padding: 0 20px 0; min-height: 0; }
  .ft-hero { min-height: 0; height: 300px; padding: 24px 28px 15px; border-radius: 20px; }
  .ft-hero-heading { pointer-events: none; }
  .ft-kicker { margin-bottom: 7px; font-size: 7px; letter-spacing: 2px; }
  .ft-kicker > span { width: 18px; }
  .ft-hero-heading h2 { font-size: 28px; letter-spacing: -.9px; }
  .ft-hero-heading h2 br { display: none; }
  .ft-hero-heading h2 em::before { content: " "; }
  .ft-art-frame { position: absolute; inset: 50px 0 0; min-height: 0; margin: 0; }
  .ft-scene { top: 49%; }
  .ft-hero-foot { position: absolute; bottom: 12px; left: 23px; right: 16px; pointer-events: none; }
  .ft-hero-caption { display: none; }
  .ft-scene-toolbar { border: 0; padding: 0; min-height: 36px; }
  .ft-motion-toggle { pointer-events: auto; margin-left: auto; background: #00201fcc; border-color: #609d934d; }
  .ft-entry { padding: 36px 20px 70px; }
  .ft-sign-in-card { max-width: 440px; }
  .ft-welcome-mark { display: none; }
  .ft-form-kicker { margin-bottom: 7px; font-size: 9px; }
  .ft-auth .ft-sign-in-card h1 { font-size: 34px; letter-spacing: -1.1px; }
  .ft-intro { font-size: 14px; margin: 13px 0 23px; line-height: 1.65; }
  .ft-intro br { display: none; }
  .ft-intro br::after { content: " "; }
  .ft-help { margin-top: 22px; padding-top: 16px; }
  .ft-entry-footer { bottom: 12px; font-size: 9px; }
}
@media (max-width: 500px) {
  .ft-auth { padding-inline: 14px; }
  .ft-hero { height: 233px; padding: 19px 18px; border-radius: 18px; }
  .ft-kicker { display: none; }
  .ft-hero-heading h2 { font-size: 23px; letter-spacing: -.8px; }
  .ft-art-frame { inset: 42px 0 -8px; }
  .ft-scene { left: 52%; top: 44%; }
  .ft-hero-foot { right: 12px; bottom: 7px; }
  .ft-entry { padding: 31px 15px 74px; }
  .ft-intro { max-width: 280px; font-size: 14px; margin-bottom: 24px; }
  .ft-auth .ft-sign-in-card h1 { font-size: 34px; }
  .ft-sign-in-button { min-height: 55px; font-size: 13px !important; padding: 11px 14px; }
  .ft-account-note { font-size: 13px; }
  .ft-help { margin-top: 24px; padding-top: 17px; }
  .ft-help-toggle { min-height: 40px; }
}
@media (max-width: 360px) {
  .ft-hero { height: 210px; }
  .ft-hero-heading h2 { font-size: 20px; }
  .ft-entry { padding-inline: 8px; }
  .ft-auth .ft-sign-in-card h1 { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  .ft-auth:not(.ft-motion-choice) *, .ft-auth:not(.ft-motion-choice) *::before, .ft-auth:not(.ft-motion-choice) *::after { animation: none !important; transition: none !important; }
  .ft-auth:not(.ft-motion-choice) .hero-art { opacity: 1; filter: none; }
  .ft-auth:not(.ft-motion-choice) .particles, .ft-auth:not(.ft-motion-choice) .clock-energy, .ft-auth:not(.ft-motion-choice) .arrival-ring, .ft-auth:not(.ft-motion-choice) .flying-page, .ft-auth:not(.ft-motion-choice) .light-shaft, .ft-auth:not(.ft-motion-choice) .hand.second { display: none !important; }
  .ft-auth:not(.ft-motion-choice) .ft-sign-in-button:hover { transform: none; }
}
@media (forced-colors: active) {
  .ft-sign-in-button, .ft-motion-toggle { border-color: ButtonText; }
  .ft-hero { border: 1px solid CanvasText; }
}


/* Match the supplied palette throughout this login's shared header. */
body.account-layout:has(.ft-auth) {
 --surface: var(--ft-surface); --background: var(--ft-surface); --ink: var(--ft-text);
 --muted: var(--ft-muted); --line: var(--ft-line); --teal: var(--ft-accent);
 --teal-soft: var(--ft-tint); --navy: var(--ft-text); --navy-soft: var(--ft-tint);
}
body.account-layout:has(.ft-auth) .app-header { background: transparent; border-bottom: 0; box-shadow: none; }
body.account-layout:has(.ft-auth) .main-content { background: transparent; }
.ft-sign-in-card .account-form { margin-top: 24px; }

/* Borderless artwork: both themes share the page surface, not a separate card. */
.ft-auth .ft-hero {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--ft-text);
}
.ft-hero::before { content: none; }
.ft-hero-heading h2 { color: var(--ft-text); }
.ft-hero-heading em { color: var(--ft-accent); }
.ft-kicker, .ft-hero-caption { color: var(--ft-muted); }
.ft-kicker > span { background: var(--ft-accent); }
.ft-hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ft-hero-caption { margin: 0; }
.ft-scene-toolbar { border: 0; padding: 0; min-height: 36px; margin-left: auto; justify-content: flex-end; }
.ft-auth .ft-motion-toggle { background: transparent; color: var(--ft-muted); border-color: transparent; }
.ft-auth .ft-motion-toggle:hover { background: var(--ft-tint); color: var(--ft-accent); border-color: transparent; }
.ft-auth .ft-motion-toggle:focus-visible { outline-color: var(--ft-accent) !important; }
/* Feather the complete scene so clipped trails never create a rectangular edge. */
.ft-art-frame {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 86%, transparent), linear-gradient(transparent, #000 12%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 86%, transparent), linear-gradient(transparent, #000 12%, #000 82%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.ft-auth .scene-image-light { display: block; }
.ft-auth .scene-image-dark { display: none; }
html[data-theme="dark"] .ft-auth .scene-image-light { display: none; }
html[data-theme="dark"] .ft-auth .scene-image-dark { display: block; }
/* Light artwork is re-lit, rather than displaying the dark panel on white. */
html:not([data-theme="dark"]) .ft-auth .scene-image-light { mix-blend-mode: multiply; }
/* Match the aqua light trails sampled from scene-light-v1.png. Thin cores,
   bright tips and a pale glow continue the illustration's luminous rings. */
html:not([data-theme="dark"]) .ft-auth .energy-rings {
  --ft-ring-core: #68dcd9;
  --ft-ring-tip: #d8fffa;
  --ft-ring-glow: #a7f4f3;
  opacity: .98;
  mix-blend-mode: normal;
}
html:not([data-theme="dark"]) .ft-auth #ft-beam stop { stop-color: var(--ft-ring-core); }
html:not([data-theme="dark"]) .ft-auth #ft-beam stop:last-child { stop-color: var(--ft-ring-tip); }
html:not([data-theme="dark"]) .ft-auth .ring-outer { stroke: var(--ft-ring-core); stroke-width: 1; opacity: .52; }
html:not([data-theme="dark"]) .ft-auth .ring-a:not(.glow-copy) { stroke-width: 2.4; }
html:not([data-theme="dark"]) .ft-auth .ring-b { stroke: var(--ft-ring-core); stroke-width: 1.5; opacity: .92; }
html:not([data-theme="dark"]) .ft-auth .ring-orbit:not(.glow-copy) { stroke: var(--ft-ring-core); stroke-width: 3; opacity: .9; }
html:not([data-theme="dark"]) .ft-auth .glow-copy { stroke: var(--ft-ring-glow); opacity: .24; }
/* Soften decorative haze while leaving the clock, dates and orbit cores crisp. */
html:not([data-theme="dark"]) .ft-auth .energy-bloom { filter: opacity(.45); }
html:not([data-theme="dark"]) .ft-auth .light-shaft { filter: blur(1px) opacity(.6); }
/* Lighten blending removes the original image's near-black backdrop in dark mode. */
html[data-theme="dark"] .ft-auth .ft-art-frame { mix-blend-mode: lighten; }
@media (max-width: 900px) {
  body.account-layout:has(.ft-auth) {
    --ft-login-background: linear-gradient(180deg, #e4e8eb 0, #eef1f3 280px, #fff 580px, #fff 100%);
  }
  .ft-auth .ft-hero-foot { display: flex; }
}

/* Fit ordinary desktop viewports by reducing decoration and spacing, not by
   clipping the form. Intrinsic content can still grow for errors/help/zoom. */
.ft-auth-dual .ft-welcome-mark { display: none; }
.ft-auth-dual .ft-form-kicker { margin-bottom: 6px; }
.ft-auth-dual .ft-sign-in-card h1 { font-size: 36px; line-height: 1.15; }
.ft-auth-dual .ft-intro { margin: 8px 0 16px; font-size: 13px; line-height: 1.5; }
.ft-auth-dual .ft-intro br { display: none; }
.ft-auth-dual .ft-sign-in-button { min-height: 50px; }
.ft-auth-dual .ft-account-note { margin-top: 6px; font-size: 13px; line-height: 1.5; }
.ft-auth-dual .account-form { margin-top: 12px; gap: 10px; }
.ft-auth-dual .account-primary-action { margin-top: 0; }
.ft-auth .account-support { display: grid; gap: 4px; margin-top: 12px; padding-top: 10px; font-size: 13px; line-height: 1.5; }
.ft-auth .account-support a { margin: 0; }
.ft-auth-dual .ft-help { margin-top: 10px; padding-top: 8px; }
@media (min-width: 901px) {
  .ft-auth {
    min-height: calc(100dvh - var(--ft-header-height, 64px));
    padding-bottom: clamp(8px, 1.5dvh, 16px);
  }
  .ft-auth .ft-hero {
    min-height: 0;
    padding-block: clamp(16px, 3dvh, 40px);
  }
  .ft-auth .ft-art-frame { min-height: clamp(160px, 28dvh, 300px); }
  .ft-hero-heading h2 { font-size: clamp(36px, 6dvh, 76px); }
  .ft-auth .ft-entry {
    flex-direction: column;
    gap: 16px;
    padding-block: clamp(12px, 2dvh, 28px);
  }
  .ft-entry-footer { position: static; flex: 0 0 auto; }
}
@media (min-width: 901px) and (max-height: 800px) {
  .ft-auth-dual .ft-form-kicker,
  .ft-auth-dual .ft-intro { display: none; }
  .ft-auth-dual .ft-sign-in-card h1 { margin-bottom: 14px; font-size: 32px; }
  .ft-auth-dual .account-form { gap: 8px; }
  .ft-auth-dual .ft-help { margin-top: 8px; }
  .ft-auth .ft-kicker { margin-bottom: 10px; }
}

/* Separate the two independent sign-in methods without increasing control size. */
.ft-sign-in-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 0;
  color: var(--ft-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.ft-sign-in-divider::before, .ft-sign-in-divider::after {
  content: "";
  flex: 1;
  min-width: 12px;
  border-top: 1px solid var(--ft-line);
}
.ft-auth .account-form .account-email-action {
  color: var(--ft-accent);
  background: transparent;
  border: 1px solid var(--ft-accent);
  box-shadow: none;
}
.ft-auth .account-form .account-email-action:hover { background: var(--ft-tint); }
.ft-help-content p { margin: 0; }
.ft-help-content p + p { margin-top: 8px; }
@media (min-width: 901px) and (max-height: 800px) {
  .ft-sign-in-divider { margin-top: 10px; }
  .ft-auth-dual .account-form { margin-top: 8px; }
}
