﻿/* Sign-in screens (always dark) + the quote and health-tip cards (also used on Home). No external fonts or libraries: works offline. */
.lp { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; background: #05070a; color: #f4f6f8; overflow: hidden; padding: 22px 16px calc(26px + env(safe-area-inset-bottom)); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .5; will-change: transform; animation: drift 24s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: radial-gradient(circle, rgba(255, 138, 0, .55), transparent 62%); left: -24vmax; top: -22vmax; }
.aurora i:nth-child(2) { background: radial-gradient(circle, rgba(106, 61, 255, .6), transparent 62%); right: -26vmax; top: 6vmax; animation-delay: -8s; }
.aurora i:nth-child(3) { background: radial-gradient(circle, rgba(30, 144, 255, .55), transparent 62%); left: 2vmax; bottom: -34vmax; animation-delay: -15s; }
@keyframes drift { to { transform: translate3d(7vmax, 5vmax, 0) scale(1.16); } }
@keyframes tipbar { from { width: 0; } to { width: 100%; } }
@keyframes tipin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } .tipbox.swap > p { animation: none; } }

.lp-wrap { position: relative; width: min(1040px, 100%); display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "card" "tip"; }
.lp-brand { grid-area: brand; display: grid; gap: 14px; justify-items: center; text-align: center; }
.lp-logo { display: block; width: min(170px, 48vw); height: auto; filter: drop-shadow(0 6px 28px rgba(106, 61, 255, .35)); }
.lp-card { grid-area: card; }
.lp-tip { grid-area: tip; }
.glass { background: rgba(11, 15, 21, .93); border: 1px solid rgba(255, 255, 255, .09); border-radius: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.lp-card { padding: 22px 20px 18px; }
.lp-card h1 { margin: 0 0 3px; font-size: 20px; line-height: 1.15; letter-spacing: -.01em; background: linear-gradient(90deg, #ffb347, #ff5f8f 50%, #8f7bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-sub { margin: 0 0 14px; color: #9aa4ad; font-size: 13px; line-height: 1.45; }
.lp-f { display: block; margin-bottom: 14px; }
.lp-f > span.lbl { display: block; font-size: 12px; color: #aeb7bf; margin-bottom: 6px; }
.lp-in { position: relative; display: flex; align-items: center; }
.lp-in svg.ic { position: absolute; left: 14px; width: 18px; height: 18px; stroke: #7f8a94; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.lp-in input { width: 100%; box-sizing: border-box; height: 48px; padding: 0 14px 0 42px; font-size: 16px; color: #fff; background: rgba(8, 11, 15, .85); border: 1px solid #2a3137; border-radius: 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.lp-in input:focus { border-color: #7b8cff; box-shadow: 0 0 0 3px rgba(123, 140, 255, .3); }
.lp-in.pw input { padding-right: 78px; }
.lp-eye { position: absolute; right: 5px; top: 5px; height: 38px; min-width: 56px; margin: 0; padding: 0 10px; border: 0; border-radius: 9px; background: #1a2026; color: #cfd6dc; font: 600 12.5px inherit; cursor: pointer; }
.lp-caps { min-height: 18px; margin: -6px 0 6px; font-size: 13px; color: #ffb347; }
.lp-go { position: relative; width: 100%; height: 48px; margin: 2px 0 0; border: 0; border-radius: 13px; font: 700 15px inherit; color: #fff; cursor: pointer; background: linear-gradient(90deg, #ff8a00, #ff2d6f 45%, #6a3dff 75%, #1e90ff); box-shadow: 0 8px 26px rgba(106, 61, 255, .38); transition: transform .12s, filter .12s; }
.lp-go:hover { filter: brightness(1.08); } .lp-go:active { transform: scale(.985); }
.lp-go:disabled { opacity: .65; cursor: default; }
.lp-go:focus-visible, .lp-eye:focus-visible, .lp-links button:focus-visible, .tip-ctl button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lp-err { min-height: 1.4em; margin: 10px 0 0; color: #ff7b7b; font-size: 12.5px; }
.lp-links { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.lp-links button { margin: 0; min-height: 44px; padding: 0 6px; border: 0; background: none; color: #b9c3cc; font: 600 12.5px inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lp-fine { margin: 4px 0 0; color: #7f8a94; font-size: 11px; line-height: 1.5; text-align: center; }

.quote { position: relative; padding: 12px 14px 12px 18px; text-align: left; max-width: 520px; width: 100%; box-sizing: border-box; }
.quote::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: linear-gradient(#ff8a00, #ff2d6f, #6a3dff, #1e90ff); }
.q-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #ffb347; margin-bottom: 6px; }
.q-en { margin: 0 0 4px; font-size: 14px; line-height: 1.4; color: #f4f6f8; font-weight: 600; }
.q-ta { margin: 0; font-size: 12.5px; line-height: 1.5; color: #aeb7bf; }

/* running health tip (sign-in page and Home) */
.tipbox { position: relative; padding: 11px 14px 10px; border-radius: 18px; box-sizing: border-box; background: rgba(11, 15, 21, .93); border: 1px solid rgba(255, 255, 255, .09); color: #f4f6f8; overflow: hidden; }
.tip-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tip-ic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 10px; background: linear-gradient(135deg, #1e90ff, #6a3dff); color: #fff; }
.tip-ic svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tip-t { font-weight: 700; font-size: 12.5px; flex: 1; }
.tip-ctl { display: inline-flex; gap: 4px; }
.tip-ctl button { width: 32px; height: 32px; margin: 0; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; background: rgba(255, 255, 255, .06); color: #e6ebef; font: 700 13px inherit; cursor: pointer; }
.tipbox p { margin: 0; }
.tip-en { font-size: 13px; line-height: 1.45; color: #f4f6f8; min-height: 2.9em; }
.tip-ta { margin-top: 5px !important; font-size: 12px; line-height: 1.5; color: #aeb7bf; }
.tipbox.swap > .tip-en, .tipbox.swap > .tip-ta { animation: tipin .35s ease-out; }
.tip-bar { height: 3px; margin-top: 10px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.tip-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff8a00, #ff2d6f, #6a3dff, #1e90ff); }
.tip-note { margin-top: 6px !important; font-size: 10.5px; color: #7f8a94; }

/* "Forgot password" sheet */
.sheet-bg { position: fixed; inset: 0; z-index: 90; display: grid; place-items: end center; background: rgba(0, 0, 0, .6); }
.sheet-box { width: min(460px, 100%); box-sizing: border-box; padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #0f1419; border: 1px solid rgba(255, 255, 255, .1); color: #f4f6f8; }
.sheet-box h2 { margin: 0 0 5px; font-size: 17px; } .sheet-box p { margin: 0 0 12px; color: #aeb7bf; font-size: 13px; line-height: 1.5; }
.sheet-box .row2 { display: flex; gap: 10px; margin-top: 4px; } .sheet-box .row2 button { flex: 1; }
.sheet-box .ghost { height: 46px; border-radius: 13px; border: 1px solid #2a3137; background: transparent; color: #dfe5ea; font: 600 14px inherit; cursor: pointer; }
.sheet-ok { padding: 12px 14px; border-radius: 12px; background: rgba(46, 204, 113, .12); border: 1px solid rgba(46, 204, 113, .35); color: #c9f5da; font-size: 15px; line-height: 1.5; }
@media (min-width: 600px) { .sheet-bg { place-items: center; } .sheet-box { border-radius: 22px; } }

@media (min-width: 900px) {
  .lp-wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "brand card" "tip card"; gap: 22px 44px; align-items: center; }
  .lp-brand { justify-items: start; text-align: left; align-self: end; }
  .lp-logo { width: min(330px, 100%); }
  .lp-tip { align-self: start; max-width: 520px; }
  .lp-card { padding: 30px 28px 22px; }
}

/* on Home (follows the person's light / dark theme) */
.quote.homecard, .tipbox.homecard { background: var(--surface, #fff); border: 1px solid var(--line, #e3e8ea); color: var(--ink, #12262a); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.homecard .q-en, .homecard .tip-en { color: var(--ink, #12262a); } .homecard .q-ta, .homecard .tip-ta { color: var(--mut, #5b6770); } .homecard .tip-note { color: var(--mut, #5b6770); }
.homecard .tip-ctl button { border-color: var(--line, #d5dcde); background: var(--surface-2, #f1f5f6); color: var(--ink, #12262a); }
.homecard .tip-bar { background: var(--line, #e3e8ea); }


/* quick sign-in screen (PIN pad + fingerprint) */
.qk { text-align: center; }
.qk-av { width: 50px; height: 50px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font: 700 20px inherit; color: #fff; background: linear-gradient(135deg, #ff8a00, #ff2d6f 50%, #6a3dff); box-shadow: 0 8px 24px rgba(106, 61, 255, .35); }
.qk h1 { text-align: center; }
.fpbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; margin: 4px 0 6px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; font: 700 14px inherit; cursor: pointer; }
.fpbtn[hidden] { display: none; }
.dots { display: flex; justify-content: center; gap: 12px; margin: 10px 0 12px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #5b6670; transition: background .12s, border-color .12s, transform .12s; }
.dots i.on { background: linear-gradient(135deg, #ff8a00, #ff2d6f, #6a3dff); border-color: transparent; transform: scale(1.1); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 250px; margin: 0 auto; }
.pad button { height: 48px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .06); color: #fff; font: 600 19px inherit; cursor: pointer; touch-action: manipulation; }
.pad button:active { background: rgba(255, 255, 255, .16); }
.pad button:focus-visible, .fpbtn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* floating 3D ribbons (the logo's bars) behind the sign-in screens; they drift and tilt slowly and follow the pointer a little */
.lp { --px: 0; --py: 0; }
.bars3d { position: absolute; inset: 0; perspective: 900px; perspective-origin: 50% 40%; pointer-events: none; overflow: hidden; }
.bars3d i { position: absolute; display: block; height: 30px; border-radius: 999px; opacity: .3; will-change: transform; box-shadow: inset 0 2px 6px rgba(255, 255, 255, .3);
  transform: translate3d(calc(var(--px) * var(--dx, 30px)), calc(var(--py) * var(--dy, 20px)), 0) rotateZ(var(--rz, 25deg)) rotateY(0deg); animation: ribbon var(--t, 18s) ease-in-out infinite alternate; }
.bars3d i:nth-child(1) { --rz: 28deg; --dx: 46px; --dy: 30px; --t: 17s; width: 190px; left: -40px; top: 12%; background: linear-gradient(90deg, #ffb000, #ff3d6e); }
.bars3d i:nth-child(2) { --rz: -32deg; --dx: -34px; --dy: 26px; --t: 21s; width: 150px; right: -30px; top: 28%; background: linear-gradient(90deg, #ff2d6f, #8a3dff); animation-delay: -6s; }
.bars3d i:nth-child(3) { --rz: 62deg; --dx: 28px; --dy: -24px; --t: 19s; width: 220px; right: 6%; bottom: 12%; background: linear-gradient(90deg, #6a3dff, #1e90ff); animation-delay: -3s; }
.bars3d i:nth-child(4) { --rz: -18deg; --dx: -40px; --dy: -18px; --t: 23s; width: 120px; left: 8%; bottom: 20%; background: linear-gradient(90deg, #1e90ff, #20d3ee); animation-delay: -9s; }
.bars3d i:nth-child(5) { --rz: 80deg; --dx: 20px; --dy: 34px; --t: 25s; width: 90px; left: 46%; top: 4%; background: linear-gradient(90deg, #ff8a00, #ff2d6f); animation-delay: -12s; opacity: .35; }
@keyframes ribbon { from { transform: translate3d(calc(var(--px) * var(--dx, 30px)), calc(var(--py) * var(--dy, 20px)), 0) rotateZ(var(--rz, 25deg)) rotateY(-28deg) rotateX(8deg); }
  to { transform: translate3d(calc(var(--px) * var(--dx, 30px) + 26px), calc(var(--py) * var(--dy, 20px) - 22px), 60px) rotateZ(calc(var(--rz, 25deg) + 10deg)) rotateY(28deg) rotateX(-8deg); } }
@media (prefers-reduced-motion: reduce) { .bars3d i { animation: none; } }
@media (max-width: 600px) { .bars3d i:nth-child(n+4) { display: none; } }   /* fewer moving parts on phones */
.lp-wrap, .lp-card, .lp-brand { z-index: 1; }
