/* Triathlonwunder auth pages – same design language as the athlete app (mockup B + C). */
:root{color-scheme:dark;--bg:#17140f;--card:#221e18;--card2:#2a251e;--stroke:#3a332a;--text:#f6f0e6;--muted:#bdb3a4;
 --orange:#ff9900;--ink-on-brand:#1f1b16;--link:#ff9900;--error:#ff8a73;
 font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",sans-serif}
html[data-theme="light"]{color-scheme:light;--bg:#f6f1e9;--card:#ffffff;--card2:#fbf8f3;--stroke:#ece5da;--text:#1f1b16;--muted:#5c5449;--link:#a86300;--error:#b3261e}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-size:15px;line-height:1.45;min-height:100vh}
::selection{background:#ffd699;color:#1f1b16}
a{color:var(--link)}
.app{max-width:560px;margin:0 auto;padding:0 18px calc(110px + env(safe-area-inset-bottom))}
.header{height:68px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.identity{display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none}
.identity img{width:40px;height:40px}
.identity strong{font-size:13px;font-weight:650;letter-spacing:.08em}
.identity small{display:none}
.header-side{display:flex;align-items:center;gap:10px}
.tag{font-size:10px;font-weight:650;letter-spacing:.06em;padding:5px 9px;border-radius:999px;border:1px solid var(--stroke);color:var(--muted)}
.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--card);border:1px solid var(--stroke);color:var(--text);text-decoration:none;font-size:12px}
.auth-content{padding-top:22px}
.eyebrow{display:none}
.auth-content>h1{font-size:clamp(32px,8vw,44px);font-weight:650;letter-spacing:-.03em;line-height:1.05;margin:0 0 10px}
.auth-content>h1 span{color:var(--orange)}
html[data-theme="light"] .auth-content>h1 span{color:#c77700}
.auth-content>.intro{color:var(--muted);margin:0 0 22px;max-width:46ch}
.panel{background:var(--card);border-radius:24px;padding:22px 20px;margin-bottom:14px;border:0}
.panel h2{font-size:22px;font-weight:650;letter-spacing:-.02em;margin:0 0 14px}
.panel p{color:var(--muted);margin:0 0 14px}
form{display:grid;gap:6px}
label{font-size:13px;font-weight:600;color:var(--muted);margin-top:8px}
input,select{width:100%;font:inherit;font-size:16px;color:var(--text);background:var(--bg);border:1px solid var(--stroke);border-radius:14px;padding:13px 14px;min-height:50px}
input:focus,select:focus{outline:none;border-color:var(--orange);box-shadow:0 0 0 3px color-mix(in srgb,var(--orange) 25%,transparent)}
input:user-invalid{border-color:var(--error)}
.primary{display:flex;justify-content:center;align-items:center;width:100%;margin-top:16px;border:0;border-radius:14px;background:var(--orange);color:var(--ink-on-brand)!important;font:inherit;font-weight:650;font-size:16px;padding:14px;text-decoration:none;cursor:pointer}
.primary:active{transform:scale(.99)}
button:disabled{opacity:.5;cursor:not-allowed}
button:focus-visible,a:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
.links{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:14px}
.links button{border:0;background:none;color:var(--link);font:inherit;font-size:14px;font-weight:600;padding:6px 0;cursor:pointer}
.message{background:color-mix(in srgb,var(--orange) 14%,var(--card));color:var(--text);border-radius:16px;padding:12px 14px;margin-bottom:14px;font-size:14px}
.message.error{background:color-mix(in srgb,var(--error) 16%,var(--card))}
.password-status{font-size:12px;color:var(--muted);margin:6px 0 0}
.profile-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:6px}
.profile-head h2{margin-bottom:4px}
.muted{color:var(--muted)}
.logout{border:0;background:none;color:var(--link);font:inherit;font-weight:600;font-size:14px;padding:4px 0;cursor:pointer}
.privacy{font-size:12px;margin:14px 0 0!important}
.bottom-nav{position:fixed;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));max-width:560px;margin:0 auto;display:grid;grid-template-columns:repeat(5,1fr);
 background:color-mix(in srgb,var(--card) 92%,transparent);backdrop-filter:blur(14px);border:1px solid var(--stroke);border-radius:22px;padding:6px 4px;box-shadow:0 12px 30px -12px rgba(0,0,0,.45);z-index:10}
.bottom-nav .tab{display:grid;justify-items:center;gap:3px;color:var(--muted);text-decoration:none;font-size:10px;font-weight:600;padding:6px 0;border-radius:12px}
.bottom-nav .tab .ico{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bottom-nav .tab.active{color:var(--text)}
.bottom-nav .tab.active .ico{color:var(--orange)}
.bottom-nav .tab:focus-visible{outline:2px solid var(--orange)}
.bottom{display:none}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
.app:has(#profile[hidden]) .bottom-nav{display:none}

/* Live look: only the star, centred; brand name + handwritten tagline under the headline. */
@font-face{font-family:"TW Hand";src:url("/vendor/caveat-latin-700.woff2") format("woff2");font-weight:700;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+20AC}
@font-face{font-family:"TW Hand";src:url("/vendor/caveat-latin-ext-700.woff2") format("woff2");font-weight:700;font-display:swap;unicode-range:U+0100-02AF,U+1E00-1EFF}
.header{display:grid;grid-template-columns:1fr auto 1fr}.header .header-side{justify-self:end}.identity{justify-self:center}
.brand-signature{display:inline-flex;flex-direction:column;gap:0}.brand-signature strong{font-size:13px;font-weight:800;font-style:italic;letter-spacing:.12em;color:var(--text)}
.brand-hand{font-family:"TW Hand","Iowan Old Style",Palatino,Georgia,serif;font-weight:700;font-size:21px;line-height:1;margin-top:-3px;color:var(--orange,#ff9900)}
