:root{--auth-bg:#071116;--auth-surface:#0e1b21;--auth-surface-2:#13242b;--auth-border:#243a41;--auth-text:#f4faf7;--auth-muted:#9fb1ab;--auth-green:#58e6a9;--auth-green-deep:#123c30}
.auth-entry{box-sizing:border-box;display:grid;place-items:center;min-height:100dvh;width:100%;max-width:100%;overflow-x:hidden;padding:max(20px,env(safe-area-inset-top)) 16px max(24px,env(safe-area-inset-bottom));color:var(--auth-text);color-scheme:dark;background:radial-gradient(circle at 50% -15%,#15332d 0,#0b171b 34%,var(--auth-bg) 70%);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.auth-entry__card{box-sizing:border-box;width:min(100%,430px);min-width:0;padding:24px 20px;border:1px solid var(--auth-border);border-radius:22px;background:linear-gradient(160deg,rgba(19,36,43,.98),rgba(10,23,28,.98));box-shadow:0 24px 70px rgba(0,0,0,.32)}
.auth-entry__brand{display:flex;align-items:center;gap:2px;margin:0 0 30px;color:#d9e7e2;font-size:12px;font-weight:800;letter-spacing:.16em}.auth-entry__brand span{color:var(--auth-green);font-size:19px;letter-spacing:-.08em}
.auth-entry__eyebrow{margin:0 0 8px;color:var(--auth-green);font-size:10px;font-weight:800;letter-spacing:.16em}
.auth-entry h1{max-width:15em;margin:0;color:var(--auth-text);font-size:clamp(25px,8vw,34px);line-height:1.08;letter-spacing:-.035em}
.auth-entry__copy{margin:16px 0 22px;color:var(--auth-muted);font-size:14px;line-height:1.58}
.auth-entry__modes{position:relative;z-index:2;display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0 0 18px;padding:4px;border-radius:14px;background:#09151a}
.auth-entry__modes button,.auth-entry__primary,.auth-entry__secondary,.auth-entry__selection button{min-height:48px;border:0;border-radius:11px;font:inherit;font-size:13px;font-weight:750;cursor:pointer;touch-action:manipulation}
.auth-entry__modes button{padding:10px;color:var(--auth-muted);background:transparent}.auth-entry__modes button.is-active{color:var(--auth-text);background:var(--auth-surface-2)}
.auth-entry__clerk{position:relative;z-index:1;min-height:250px;width:100%;min-width:0;max-width:100%;overflow-wrap:anywhere}.auth-entry__clerk>*{width:100%!important;max-width:100%!important}
.auth-entry__actions{display:grid;gap:10px}.auth-entry__primary{width:100%;padding:12px 18px;color:#06130e;background:var(--auth-green)}.auth-entry__secondary{width:100%;padding:12px 18px;color:var(--auth-text);border:1px solid var(--auth-border);background:transparent}
.auth-entry__error{margin:0 0 16px;padding:11px 12px;border:1px solid #7a443d;border-radius:12px;background:#321d1b;color:#ffd2cb;font-size:12px;line-height:1.5}.auth-entry button:disabled{cursor:wait;opacity:.62}
.auth-entry__primary:active,.auth-entry__secondary:active,.auth-entry__selection button:active,.auth-entry__modes button:active{transform:translateY(1px)}
.auth-entry button:focus-visible{outline:3px solid rgba(88,230,169,.38);outline-offset:3px}
.auth-entry__notice{margin:0 0 20px;padding:12px 13px;border:1px solid #31584b;border-radius:12px;background:var(--auth-green-deep);color:#b8efd8;font-size:12px;line-height:1.5}
.auth-entry__spinner{display:grid;justify-items:center;gap:12px;padding:44px 0 34px;text-align:center}.auth-entry__spinner i{width:28px;height:28px;border:2px solid #2a4448;border-top-color:var(--auth-green);border-radius:50%;animation:auth-spin .75s linear infinite}.auth-entry__spinner strong{font-size:16px}.auth-entry__spinner span{color:var(--auth-muted);font-size:13px}
.auth-entry__selection{display:grid;gap:10px;margin:0 0 18px}.auth-entry__selection button{display:grid;gap:4px;width:100%;padding:14px;text-align:left;color:var(--auth-text);border:1px solid var(--auth-border);background:var(--auth-surface-2)}.auth-entry__selection button span{color:var(--auth-green);font-size:9px;letter-spacing:.13em}.auth-entry__selection button strong{overflow-wrap:anywhere;font-size:14px}.auth-entry__selection button small{color:var(--auth-muted);font-size:11px;font-weight:500}
@keyframes auth-spin{to{transform:rotate(360deg)}}
@media (max-width:390px){.auth-entry{padding-inline:12px}.auth-entry__card{padding:22px 17px;border-radius:18px}.auth-entry h1{font-size:27px}}
@media (prefers-reduced-motion:reduce){.auth-entry__spinner i{animation-duration:1.8s}.auth-entry__primary:active,.auth-entry__secondary:active,.auth-entry__selection button:active,.auth-entry__modes button:active{transform:none}}

/* The former development-only coach link used this class and was hidden by
   athlete-appification.css. It is now the authenticated sign-out control. */
.athlete-app .aa-coach-switch{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;border:0;background:transparent;color:#9fd5c2;font:inherit;font-size:11px;font-weight:700;cursor:pointer;touch-action:manipulation}
