/* Ninja Gym authentication experience */
body:not(.auth-ready) .app-shell { display: none; }
.sr-only { position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(380px,.9fr) minmax(520px,1.1fr); background: #f6f8f4; }
.auth-story { position: relative; display: flex; flex-direction: column; min-height: 100vh; overflow: hidden; padding: 44px clamp(34px,5vw,76px); background: #11241f; color: #fff; }
.auth-story::before { content: ""; position: absolute; width: 430px; height: 430px; right: -210px; top: 14%; border: 74px solid rgba(226,168,63,.12); border-radius: 50%; }
.auth-story::after { content: ""; position: absolute; width: 290px; height: 290px; left: -120px; bottom: -145px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 46px rgba(255,255,255,.025),0 0 0 92px rgba(255,255,255,.02); }
.auth-brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; width: fit-content; color: inherit; text-decoration: none; }
.auth-brand-mark { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.24); border-radius: 10px; background: #1f5f4d; font-weight: 900; }
.auth-brand span:last-child { display: grid; gap: 2px; }
.auth-brand strong { font-size: 1.05rem; }
.auth-brand small { color: #b9d0c8; font-size: .78rem; }
.auth-story-copy { position: relative; z-index: 1; margin: auto 0; max-width: 620px; }
.auth-kicker { margin: 0 0 13px; color: #c7973d!important; font-size: .73rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.auth-story-copy h1 { margin: 0 0 22px; max-width: 600px; font-size: clamp(2.6rem,5vw,4.9rem); line-height: .98; letter-spacing: -.055em; }
.auth-story-copy > p:not(.auth-kicker) { max-width: 530px; color: #bfd0ca; font-size: 1.08rem; line-height: 1.7; }
.auth-proof { display: grid; margin-top: 44px; border-top: 1px solid rgba(255,255,255,.13); }
.auth-proof span { display: flex; gap: 16px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.13); color: #dce7e3; font-size: .9rem; font-weight: 750; }
.auth-proof b { color: #d5a647; font-size: .73rem; letter-spacing: .08em; }
.auth-story-foot { position: relative; z-index: 1; margin: 0; color: #78978d; font-size: .78rem; }
.auth-stage { display: grid; place-items: center; min-width: 0; padding: 42px clamp(24px,6vw,92px); color: #17211d; }
.auth-panel { width: min(100%,520px); animation: authIn .26s ease; }
@keyframes authIn { from { opacity: 0; transform: translateY(8px); } }
.auth-panel-heading { margin-bottom: 30px; }
.auth-panel-heading h2,.auth-success h2 { margin: 0 0 9px; font-size: clamp(2rem,4vw,2.75rem); letter-spacing: -.045em; color: #17211d; }
.auth-panel-heading > p:last-child,.auth-success > p { margin: 0; color: #61706b; line-height: 1.55; }
.auth-panel[data-auth-panel="login"] .auth-panel-heading h2,
.auth-panel[data-auth-panel="forgot"] .auth-panel-heading h2 { color: #17211d !important; }
.auth-panel[data-auth-panel="login"] .auth-panel-heading > p:last-child,
.auth-panel[data-auth-panel="forgot"] .auth-panel-heading > p:last-child { color: #61706b !important; }
.auth-form,.auth-form fieldset { display: grid; gap: 18px; }
.auth-form fieldset { margin: 0; padding: 0; border: 0; }
.auth-form label { display: grid; gap: 8px; color: #263a33; font-size: .82rem; font-weight: 850; }
.auth-form input:not([type="checkbox"]):not([type="radio"]) { width: 100%; height: 52px; border: 1px solid #cddad4; border-radius: 7px; padding: 0 14px; background: #fff; color: #17211d; font: inherit; }
.auth-form input:focus { outline: 3px solid rgba(20,107,85,.18); border-color: #146b55; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 62px!important; }
.password-field button { position: absolute; right: 7px; top: 7px; height: 38px; border: 0; background: transparent; color: #146b55; font-size: .75rem; font-weight: 900; }
.auth-form-row,.auth-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.auth-check { display: flex!important; align-items: center; gap: 9px!important; font-weight: 650!important; }
.auth-check input { width: 17px; height: 17px; accent-color: #146b55; }
.text-button,.auth-back { padding: 0; border: 0; background: transparent; color: #146b55; font-size: .82rem; font-weight: 850; }
.auth-back { margin-bottom: 28px; }
.auth-primary,.auth-secondary { min-height: 52px; padding: 0 22px; border-radius: 7px; font: inherit; font-weight: 900; cursor: pointer; }
.auth-primary { border: 0; background: #146b55; color: #fff; box-shadow: 0 9px 20px rgba(20,107,85,.17); }
.auth-primary:hover { background: #0e4d3f; }
.auth-secondary { border: 1px solid #dce5e0; background: #fff; color: #17211d; }
.auth-form-actions .auth-primary,.auth-form-actions .auth-secondary { flex: 1; }
.auth-demo { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 64px; padding: 9px 14px; border: 1px solid #dbe4df; border-radius: 7px; background: transparent; color: #17211d; text-align: left; }
.auth-demo:hover { border-color: #9ebcb1; background: #fff; }
.auth-demo span:nth-child(2) { display: grid; gap: 2px; }
.auth-demo small { color: #61706b; }
.demo-avatar,.signed-in-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #dff3eb; color: #0e4d3f; font-size: .73rem; font-weight: 900; }
.auth-switch { margin: 28px 0 0; text-align: center; color: #61706b; font-size: .88rem; }
.auth-security-note { margin: 15px auto 0; max-width: 410px; color: #8a9691; font-size: .7rem; line-height: 1.45; text-align: center; }
.auth-error { min-height: 0; margin: -4px 0; color: #a5342e; font-size: .8rem; font-weight: 750; }
.auth-error:empty { display: none; }
.auth-steps { display: flex; align-items: center; margin: -10px 0 30px; }
.auth-steps span { display: flex; align-items: center; gap: 7px; color: #91a09a; font-size: .72rem; font-weight: 900; }
.auth-steps span.is-active { color: #146b55; }
.auth-steps span b { font-size: .7rem; }
.auth-steps i { flex: 1; height: 1px; margin: 0 10px; background: #dce5e0; }
.auth-choice-group { display: grid; gap: 9px; color: #263a33; font-size: .82rem; font-weight: 850; }
.auth-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-choice-grid label { position: relative; }
.auth-choice-grid input { position: absolute; opacity: 0; }
.auth-choice-grid label span { display: grid; gap: 4px; min-height: 88px; padding: 16px; border: 1px solid #d6e1dc; border-radius: 7px; background: #fff; cursor: pointer; }
.auth-choice-grid label span small { color: #61706b; font-weight: 600; line-height: 1.35; }
.auth-choice-grid input:checked + span { border-color: #146b55; box-shadow: 0 0 0 2px rgba(20,107,85,.12); }
.auth-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.password-rules { display: flex; flex-wrap: wrap; gap: 7px 18px; margin: -8px 0 0; padding: 0; list-style: none; }
.password-rules li { color: #8b9692; font-size: .7rem; }
.password-rules li::before { content: "○"; margin-right: 5px; }
.password-rules li.is-met { color: #146b55; }
.password-rules li.is-met::before { content: "✓"; }
.terms-check { align-items: start; line-height: 1.45; }
.auth-success { display: grid; justify-items: center; gap: 12px; padding: 24px 0; text-align: center; }
.success-mark { display: grid; place-items: center; width: 78px; height: 78px; margin-bottom: 10px; border-radius: 50%; background: #dff3eb; color: #146b55; font-size: 2rem; font-weight: 900; }
.success-mark.small { width: 52px; height: 52px; font-size: 1.3rem; }
.auth-success .auth-primary { width: 100%; margin-top: 12px; }
.auth-reset-success { display: grid; justify-items: center; gap: 9px; text-align: center; }
.auth-reset-success h3,.auth-reset-success p { margin: 0; }
.auth-reset-success p { color: #61706b; line-height: 1.5; }
.auth-reset-success .auth-secondary { width: 100%; margin-top: 12px; }
.signed-in-card.auth-account-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: rgba(255,255,255,.06); }
.auth-account-card > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.auth-account-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.auth-account-card small { color: #a9c0b8; font-size: .68rem; }
.auth-account-card button { width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: #bcd0c8; font-weight: 900; }
.auth-account-card button:hover { background: rgba(255,255,255,.09); color: #fff; }
.auth-account-card .signed-in-avatar { width: 34px; height: 34px; background: #1f5f4d; color: #fff; }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { min-height: auto; padding: 28px 24px; }
  .auth-story-copy { margin: 70px 0 30px; }
  .auth-story-copy h1 { font-size: 2.7rem; }
  .auth-proof,.auth-story-foot { display: none; }
  .auth-stage { padding: 48px 22px; }
}
@media (max-width: 520px) {
  .auth-story-copy { margin-top: 48px; }
  .auth-story-copy h1 { font-size: 2.25rem; }
  .auth-choice-grid,.auth-two-col { grid-template-columns: 1fr; }
  .auth-steps span b { display: none; }
  .auth-form-row { align-items: flex-start; }
  .auth-panel-heading h2,.auth-success h2 { font-size: 2rem; }
}

.auth-portal-link { display: block; margin: 17px auto 0; color: #146b55; font-size: .82rem; font-weight: 850; text-align: center; text-decoration: none; }
.auth-portal-link:hover { text-decoration: underline; }
.auth-role-note { display: grid; gap: 5px; padding: 15px; border: 1px solid #cfe0d8; border-radius: 8px; background: #edf8f3; color: #173e32; }
.auth-role-note span { color: #61706b; font-size: .78rem; line-height: 1.45; }
.admin-setting-sidecar a.primary-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
