/* myAI-GYM auth UI.
   Fresh login, registration, and password recovery layer. */

:root {
    --auth-ink: #101827;
    --auth-muted: #64748b;
    --auth-soft: #f4f8fb;
    --auth-paper: #ffffff;
    --auth-line: #dce7f1;
    --auth-navy: #071932;
    --auth-blue: #0b5bd3;
    --auth-cyan: #03a9d9;
    --auth-red: #d71920;
    --auth-gold: #f2b632;
    --auth-green: #0f9f6e;
    --auth-radius: 8px;
    --auth-shadow: 0 24px 70px rgba(13, 36, 61, .16);
    --auth-font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
}

body.app-auth-access {
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--auth-ink);
    font-family: var(--auth-font);
    background:
        linear-gradient(135deg, #f8fbfd 0%, #eef5f9 46%, #ffffff 100%);
    overflow-x: hidden;
}

body.app-auth-access::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(90deg, rgba(7, 25, 50, .045) 1px, transparent 1px),
        linear-gradient(rgba(7, 25, 50, .04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .74) 48%, transparent 100%);
}

body.app-auth-access a {
    color: inherit;
}

body.app-auth-access button,
body.app-auth-access input {
    font: inherit;
}

body.app-auth-access button {
    cursor: pointer;
}

body.app-auth-access .page-wrap,
body.app-auth-access .shell,
body.app-auth-access .workspace,
body.app-auth-access .auth-layout,
body.app-auth-access .coach-auth-layout {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

body.app-auth-access .shell,
body.app-auth-access .workspace,
body.app-auth-access .auth-layout {
    display: block;
}

body.app-auth-access .rail,
body.app-auth-access .coach-auth-card-head,
body.app-auth-access .coach-auth-description,
body.app-auth-access .auth-footer {
    display: none;
}

body.app-auth-access .app-language-switch {
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    z-index: 40;
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 14px 36px rgba(13, 36, 61, .14);
    backdrop-filter: blur(16px);
}

body.app-auth-access .app-language-switch button {
    min-width: 38px;
    min-height: 30px;
    padding: 4px 10px;
    border: 0;
    border-radius: 999px;
    color: var(--auth-muted);
    background: transparent;
    font-size: .74rem;
    font-weight: 800;
}

body.app-auth-access .app-language-switch button.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--auth-red), var(--auth-blue));
    box-shadow: 0 8px 18px rgba(11, 91, 211, .2);
}

body.app-auth-access .coach-auth-grid {
    width: min(1180px, calc(100% - 40px));
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 500px);
    align-items: center;
    gap: clamp(18px, 3vw, 34px);
    margin: 0 auto;
    padding: clamp(26px, 5vw, 58px) 0;
}

body.app-auth-access .coach-auth-hero {
    position: relative;
    min-height: min(680px, calc(100vh - 80px));
    display: grid;
    align-items: end;
    overflow: hidden;
    border-radius: var(--auth-radius);
    background:
        linear-gradient(180deg, rgba(7, 25, 50, .16) 0%, rgba(7, 25, 50, .86) 100%),
        linear-gradient(135deg, rgba(215, 25, 32, .26), transparent 42%, rgba(3, 169, 217, .22)),
        url("../images/login-gym-ai-hero.png") center / cover no-repeat;
    box-shadow: var(--auth-shadow);
    isolation: isolate;
}

body.app-auth-access .coach-auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 56px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 56px);
    opacity: .7;
}

body.app-auth-access .coach-auth-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .16) 42%, transparent 58%);
    transform: translateX(-115%);
    animation: authSweep 6.4s ease-in-out infinite;
}

body.app-auth-access .coach-auth-hero-copy {
    position: relative;
    z-index: 2;
    width: min(600px, calc(100% - 44px));
    margin: 22px;
    color: #ffffff;
    animation: authFadeUp .56s ease both;
}

body.app-auth-access .brand-chip,
body.app-auth-access .login-kicker,
body.app-auth-access .login-v2-kicker {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    color: #fff4c6;
    background: rgba(7, 25, 50, .38);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
    backdrop-filter: blur(14px);
}

body.app-auth-access .coach-auth-hero-copy h1 {
    max-width: 620px;
    margin: 16px 0 12px;
    color: #ffffff;
    font-size: clamp(2.15rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: 0;
}

body.app-auth-access .coach-auth-hero-copy p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.7;
}

body.app-auth-access .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

body.app-auth-access .hero-stats div {
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--auth-radius);
    background: rgba(7, 25, 50, .46);
    backdrop-filter: blur(12px);
}

body.app-auth-access .hero-stats strong,
body.app-auth-access .hero-stats span {
    display: block;
}

body.app-auth-access .hero-stats strong {
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1;
}

body.app-auth-access .hero-stats span {
    margin-top: 6px;
    color: rgba(255, 255, 255, .68);
    font-size: .72rem;
    font-weight: 700;
}

body.app-auth-access .coach-auth-pane {
    width: 100%;
    min-width: 0;
}

body.app-auth-access .auth-card.modern-auth-card.login-card {
    width: 100%;
    min-width: 0;
    padding: clamp(20px, 3.2vw, 32px);
    border: 1px solid rgba(220, 231, 241, .95);
    border-radius: var(--auth-radius);
    color: var(--auth-ink);
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(18px);
    animation: authFadeUp .5s ease both;
}

body.app-auth-access .auth-alert {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(215, 25, 32, .2);
    border-radius: var(--auth-radius);
    color: #9f1239;
    background: #fff1f2;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.45;
}

body.app-auth-access .auth-alert.alert-success {
    border-color: rgba(15, 159, 110, .22);
    color: #047857;
    background: #ecfdf5;
}

body.app-auth-access .login-app-identity {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--auth-line);
}

body.app-auth-access .login-app-logo,
body.app-auth-access .login-v2-brand > span,
body.app-auth-access .login-v2-scan > span,
body.app-auth-access .input > i,
body.app-auth-access .login-myid-mark,
body.app-auth-access .verify-email-orb {
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--auth-red), var(--auth-blue) 68%, var(--auth-cyan));
}

body.app-auth-access .login-app-logo {
    width: 46px;
    height: 46px;
    border-radius: var(--auth-radius);
    box-shadow: 0 12px 24px rgba(11, 91, 211, .2);
}

body.app-auth-access .login-app-logo i {
    font-size: 1.2rem;
}

body.app-auth-access .login-app-identity > div {
    min-width: 0;
}

body.app-auth-access .login-app-identity strong,
body.app-auth-access .login-app-identity small {
    display: block;
}

body.app-auth-access .login-app-identity strong {
    color: var(--auth-ink);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.15;
}

body.app-auth-access .login-app-identity small {
    margin-top: 3px;
    color: var(--auth-muted);
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.35;
}

body.app-auth-access .login-app-badge {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid #d6e8f8;
    border-radius: 999px;
    color: #0b5bd3;
    background: #eff8ff;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

body.app-auth-access .login-card-head {
    display: grid;
    gap: 10px;
}

body.app-auth-access .login-card-head .login-kicker {
    border-color: #d8edf5;
    color: #096987;
    background: #eefbff;
    backdrop-filter: none;
}

body.app-auth-access .login-card-head h3 {
    margin: 0;
    color: var(--auth-ink);
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
}

body.app-auth-access .login-card-head p {
    max-width: 42rem;
    margin: 0;
    color: var(--auth-muted);
    font-size: .94rem;
    font-weight: 600;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

body.app-auth-access .login-form-stack {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

body.app-auth-access .field {
    min-width: 0;
    display: grid;
    gap: 8px;
}

body.app-auth-access .field label {
    color: #334155;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.2;
}

body.app-auth-access .input {
    min-height: 56px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--auth-line);
    border-radius: var(--auth-radius);
    background: #ffffff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.app-auth-access .input:focus-within {
    border-color: rgba(3, 169, 217, .72);
    box-shadow: 0 0 0 4px rgba(3, 169, 217, .13);
    transform: translateY(-1px);
}

body.app-auth-access .input > i {
    width: 40px;
    height: 40px;
    border-radius: var(--auth-radius);
    font-size: 1rem;
}

body.app-auth-access .input input {
    min-width: 0;
    width: 100%;
    min-height: 38px;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--auth-ink);
    background: transparent;
    font-size: .95rem;
    font-weight: 700;
}

body.app-auth-access .input input::placeholder {
    color: #9aa8b8;
    font-weight: 600;
}

body.app-auth-access .password-toggle {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #d8edf5;
    border-radius: var(--auth-radius);
    color: #096987;
    background: #eefbff;
    transition: background .18s ease, transform .18s ease;
}

body.app-auth-access .password-toggle:hover {
    background: #dff6ff;
    transform: translateY(-1px);
}

body.app-auth-access .login-remember-option {
    position: relative;
    min-width: 0;
    min-height: 32px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 2px 0;
    cursor: pointer;
    transition: transform .18s ease;
}

body.app-auth-access .login-remember-option:hover,
body.app-auth-access .login-remember-option:focus-within {
    transform: translateY(-1px);
}

body.app-auth-access .login-remember-option input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

body.app-auth-access .login-remember-control {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid #cfe4ef;
    border-radius: 8px;
    color: #ffffff;
    background: #ffffff;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body.app-auth-access .login-remember-control i {
    opacity: 0;
    font-size: .85rem;
    transition: opacity .18s ease;
}

body.app-auth-access .login-remember-option input:checked + .login-remember-control {
    border-color: rgba(11, 91, 211, .35);
    background: linear-gradient(135deg, var(--auth-blue), var(--auth-cyan));
    box-shadow: 0 10px 22px rgba(11, 91, 211, .18);
}

body.app-auth-access .login-remember-option input:checked + .login-remember-control i {
    opacity: 1;
}

body.app-auth-access .login-remember-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
    color: var(--auth-ink);
    line-height: 1.2;
}

body.app-auth-access .login-remember-copy strong {
    font-size: .84rem;
    font-weight: 900;
}

body.app-auth-access .login-remember-copy small {
    color: var(--auth-muted);
    font-size: .74rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

body.app-auth-access .login-link-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

body.app-auth-access .tiny-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border: 1px solid #dde9f3;
    border-radius: var(--auth-radius);
    color: #0b5bd3;
    background: #f8fbfd;
    font-size: .8rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.app-auth-access .tiny-link:hover,
body.app-auth-access .login-myid-button:hover {
    border-color: rgba(11, 91, 211, .35);
    box-shadow: 0 10px 24px rgba(13, 36, 61, .08);
    transform: translateY(-1px);
}

body.app-auth-access .login-submit {
    width: 100%;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--auth-radius);
    color: #ffffff;
    background: linear-gradient(135deg, var(--auth-red), #b8174b 42%, var(--auth-blue) 82%, var(--auth-cyan));
    box-shadow: 0 16px 30px rgba(11, 91, 211, .22);
    font-size: .98rem;
    font-weight: 900;
    text-decoration: none;
    transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}

body.app-auth-access .login-submit:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 20px 34px rgba(11, 91, 211, .26);
}

body.app-auth-access .login-submit i {
    animation: authArrowNudge 1.6s ease-in-out infinite;
}

body.app-auth-access .login-admin-panel {
    margin-top: 20px;
}

body.app-auth-access .login-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--auth-muted);
    font-size: .74rem;
    font-weight: 800;
}

body.app-auth-access .login-divider::before,
body.app-auth-access .login-divider::after {
    content: "";
    height: 1px;
    background: var(--auth-line);
}

body.app-auth-access .login-myid-button {
    min-height: 56px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #dde9f3;
    border-radius: var(--auth-radius);
    color: var(--auth-ink);
    background: #ffffff;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.app-auth-access .login-myid-mark {
    width: 40px;
    height: 40px;
    border-radius: var(--auth-radius);
}

body.app-auth-access .login-myid-copy,
body.app-auth-access .login-myid-wordmark {
    min-width: 0;
}

body.app-auth-access .login-myid-wordmark {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    font-weight: 900;
}

body.app-auth-access .login-myid-prefix,
body.app-auth-access .login-myid-suffix {
    color: var(--auth-muted);
    font-size: .78rem;
    font-weight: 800;
}

body.app-auth-access .login-myid-wordmark-my {
    color: var(--auth-blue);
}

body.app-auth-access .login-myid-wordmark-id {
    color: var(--auth-gold);
}

body.app-auth-access .login-help-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #dde9f3;
    border-radius: var(--auth-radius);
    color: var(--auth-muted);
    background: #f8fbfd;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

body.app-auth-access .login-help-note i {
    color: var(--auth-blue);
    margin-top: 2px;
}

body.app-auth-access.app-page-login .coach-auth-grid {
    width: min(1180px, calc(100% - 34px));
    grid-template-columns: 1fr;
    place-items: center;
}

body.app-auth-access.app-page-login .coach-auth-hero {
    display: none;
}

body.app-auth-access.app-page-login .coach-auth-pane {
    width: 100%;
}

body.app-auth-access.app-page-login .auth-card.modern-auth-card.login-card {
    max-width: 1180px;
    padding: 0;
    overflow: hidden;
}

body.app-auth-access .login-v2-shell {
    min-height: min(720px, calc(100vh - 60px));
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
}

body.app-auth-access .login-v2-visual {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--auth-navy);
    isolation: isolate;
}

body.app-auth-access .login-v2-visual > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    animation: authImagePan 13s ease-in-out infinite alternate;
}

body.app-auth-access .login-v2-visual-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(7, 25, 50, .08) 0%, rgba(7, 25, 50, .88) 100%),
        linear-gradient(135deg, rgba(215, 25, 32, .34), transparent 42%, rgba(3, 169, 217, .22));
}

body.app-auth-access .login-v2-brand,
body.app-auth-access .login-v2-copy,
body.app-auth-access .login-v2-scan,
body.app-auth-access .login-v2-rings {
    position: absolute;
    z-index: 2;
}

body.app-auth-access .login-v2-brand {
    top: 24px;
    left: 24px;
    display: inline-grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--auth-radius);
    color: #ffffff;
    background: rgba(7, 25, 50, .58);
    backdrop-filter: blur(14px);
}

body.app-auth-access .login-v2-brand > span,
body.app-auth-access .login-v2-scan > span {
    width: 44px;
    height: 44px;
    border-radius: var(--auth-radius);
}

body.app-auth-access .login-v2-brand strong,
body.app-auth-access .login-v2-brand small,
body.app-auth-access .login-v2-scan strong,
body.app-auth-access .login-v2-scan small {
    display: block;
}

body.app-auth-access .login-v2-brand strong {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.1;
}

body.app-auth-access .login-v2-brand small,
body.app-auth-access .login-v2-scan small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .72);
    font-size: .73rem;
    font-weight: 700;
    line-height: 1.35;
}

body.app-auth-access .login-v2-copy {
    left: 30px;
    right: 30px;
    bottom: 132px;
    max-width: 640px;
    color: #ffffff;
    animation: authFadeUp .62s ease .08s both;
}

body.app-auth-access .login-v2-kicker {
    background: rgba(7, 25, 50, .5);
}

body.app-auth-access .login-v2-copy h2 {
    margin: 16px 0 12px;
    color: #ffffff;
    font-size: clamp(2.2rem, 4.2vw, 4rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: 0;
}

body.app-auth-access .login-v2-copy p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.65;
}

body.app-auth-access .login-v2-scan {
    left: 30px;
    bottom: 28px;
    width: min(430px, calc(100% - 60px));
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--auth-radius);
    color: #ffffff;
    background: rgba(7, 25, 50, .66);
    box-shadow: 0 20px 46px rgba(0, 0, 0, .24);
    backdrop-filter: blur(14px);
    animation: authFloat 4.8s ease-in-out infinite;
}

body.app-auth-access .login-v2-scan strong {
    color: #ffffff;
    font-size: .94rem;
    font-weight: 900;
}

body.app-auth-access .login-v2-rings {
    top: 22%;
    right: 12%;
    width: 160px;
    height: 160px;
    pointer-events: none;
}

body.app-auth-access .login-v2-rings span {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 50%;
    animation: authScanRing 3.2s ease-out infinite;
}

body.app-auth-access .login-v2-rings span:nth-child(2) {
    animation-delay: .8s;
}

body.app-auth-access .login-v2-rings span:nth-child(3) {
    animation-delay: 1.6s;
}

body.app-auth-access .login-v2-panel {
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(22px, 4vw, 44px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 253, .96));
}

body.app-auth-access .verify-email-panel {
    display: grid;
    gap: 18px;
}

body.app-auth-access .verify-email-orb {
    width: 64px;
    height: 64px;
    border-radius: var(--auth-radius);
    font-size: 1.7rem;
    box-shadow: 0 14px 28px rgba(11, 91, 211, .18);
}

body.app-auth-access .verify-email-status {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #d9efe5;
    border-radius: var(--auth-radius);
    color: #07533b;
    background: #f0fdf4;
}

body.app-auth-access .verify-email-status > i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--auth-radius);
    color: #ffffff;
    background: var(--auth-green);
}

body.app-auth-access .verify-email-status strong,
body.app-auth-access .verify-email-status small {
    display: block;
}

body.app-auth-access .verify-email-status strong {
    font-size: .94rem;
    font-weight: 900;
}

body.app-auth-access .verify-email-status small {
    margin-top: 3px;
    color: #28705a;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.45;
}

body.app-auth-access .verify-email-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

body.app-auth-access .verify-email-steps div {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 12px 8px;
    border: 1px solid #dde9f3;
    border-radius: var(--auth-radius);
    background: #f8fbfd;
    text-align: center;
}

body.app-auth-access .verify-email-steps i {
    color: var(--auth-blue);
}

body.app-auth-access .verify-email-steps span {
    color: #334155;
    font-size: .76rem;
    font-weight: 800;
}

body.app-auth-access .verify-email-actions {
    margin-top: 18px;
}

body.app-auth-access.app-page-register .login-app-identity {
    margin-bottom: 18px;
    padding-bottom: 14px;
}

body.app-auth-access.app-page-register .login-card-head {
    gap: 8px;
}

body.app-auth-access.app-page-register .login-card-head h3 {
    font-size: clamp(1.65rem, 2.5vw, 2.05rem);
}

body.app-auth-access.app-page-register .login-card-head p {
    line-height: 1.5;
}

body.app-auth-access.app-page-register .login-form-stack {
    gap: 10px;
    margin-top: 18px;
}

body.app-auth-access.app-page-register .field {
    gap: 6px;
}

body.app-auth-access.app-page-register .input {
    min-height: 52px;
    padding: 6px 10px;
}

body.app-auth-access .login-launch-screen {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(7, 25, 50, .16), rgba(7, 25, 50, .92)),
        url("../images/gym-hero.png") center / cover no-repeat;
}

body.app-auth-access .login-launch-screen[hidden] {
    display: none;
}

body.app-auth-access .login-launch-screen.is-leaving {
    animation: authSplashOut .26s ease forwards;
}

body.app-auth-access .login-launch-shell {
    width: min(430px, calc(100% - 28px));
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--auth-radius);
    background: rgba(7, 25, 50, .72);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
    backdrop-filter: blur(18px);
}

body.app-auth-access .login-launch-top,
body.app-auth-access .login-launch-status,
body.app-auth-access .login-launch-cta,
body.app-auth-access .login-launch-brand,
body.app-auth-access .login-launch-date {
    display: flex;
    align-items: center;
}

body.app-auth-access .login-launch-top {
    justify-content: space-between;
    gap: 10px;
}

body.app-auth-access .login-launch-brand {
    gap: 9px;
    font-weight: 900;
}

body.app-auth-access .login-launch-brand i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: var(--auth-radius);
    background: linear-gradient(135deg, var(--auth-red), var(--auth-blue));
}

body.app-auth-access .login-launch-date {
    min-height: 30px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--auth-radius);
    color: rgba(255, 255, 255, .78);
    font-size: .7rem;
    font-weight: 800;
    white-space: nowrap;
}

body.app-auth-access .login-launch-visual {
    position: relative;
    height: 240px;
    overflow: hidden;
    border-radius: var(--auth-radius);
    background: var(--auth-navy);
}

body.app-auth-access .login-launch-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    animation: authImagePan 10s ease-in-out infinite alternate;
}

body.app-auth-access .login-launch-pass {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--auth-radius);
    background: rgba(7, 25, 50, .7);
    backdrop-filter: blur(12px);
}

body.app-auth-access .login-launch-pass > span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--auth-radius);
    background: linear-gradient(135deg, var(--auth-red), var(--auth-blue));
}

body.app-auth-access .login-launch-pass strong,
body.app-auth-access .login-launch-pass small {
    display: block;
}

body.app-auth-access .login-launch-pass small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .72);
    font-size: .76rem;
}

body.app-auth-access .login-launch-content {
    display: grid;
    gap: 10px;
}

body.app-auth-access .login-launch-kicker {
    width: fit-content;
    color: #fff4c6;
    font-size: .76rem;
    font-weight: 900;
}

body.app-auth-access .login-launch-content h2 {
    margin: 0;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.08;
}

body.app-auth-access .login-launch-content p {
    margin: 0;
    color: rgba(255, 255, 255, .74);
    line-height: 1.55;
}

body.app-auth-access .login-launch-status {
    gap: 8px;
    flex-wrap: wrap;
}

body.app-auth-access .login-launch-status span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--auth-radius);
    background: rgba(255, 255, 255, .08);
    font-size: .78rem;
    font-weight: 800;
}

body.app-auth-access .login-launch-cta {
    min-height: 50px;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: var(--auth-radius);
    color: #ffffff;
    background: linear-gradient(135deg, var(--auth-red), var(--auth-blue));
    font-weight: 900;
}

@keyframes authFadeUp {
    from {
        opacity: .92;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authImagePan {
    from {
        transform: scale(1.04) translateX(0);
    }

    to {
        transform: scale(1.11) translateX(-1.5%);
    }
}

@keyframes authFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes authScanRing {
    0% {
        opacity: .82;
        transform: scale(.72);
    }

    100% {
        opacity: 0;
        transform: scale(1.24);
    }
}

@keyframes authArrowNudge {
    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(4px);
    }
}

@keyframes authSweep {
    0%,
    42% {
        transform: translateX(-115%);
    }

    65%,
    100% {
        transform: translateX(115%);
    }
}

@keyframes authSplashOut {
    to {
        opacity: 0;
        transform: scale(.98);
    }
}

@media (max-width: 1020px) {
    body.app-auth-access .coach-auth-grid {
        width: min(760px, calc(100% - 28px));
        grid-template-columns: minmax(0, 1fr);
        padding-top: 74px;
        padding-bottom: 26px;
    }

    body.app-auth-access .coach-auth-hero {
        min-height: 260px;
        align-items: end;
    }

    body.app-auth-access .coach-auth-hero-copy {
        width: min(620px, calc(100% - 32px));
        margin: 16px;
    }

    body.app-auth-access .coach-auth-hero-copy h1 {
        font-size: clamp(1.9rem, 6vw, 2.8rem);
    }

    body.app-auth-access .coach-auth-hero-copy p {
        font-size: .92rem;
    }

    body.app-auth-access .hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 14px;
    }

    body.app-auth-access.app-page-login .coach-auth-grid {
        width: 100%;
        padding: 0;
    }

    body.app-auth-access.app-page-login .coach-auth-pane,
    body.app-auth-access.app-page-login .auth-card.modern-auth-card.login-card {
        min-height: 100vh;
        min-height: 100dvh;
    }

    body.app-auth-access.app-page-login .auth-card.modern-auth-card.login-card {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    body.app-auth-access .login-v2-shell {
        min-height: 100vh;
        min-height: 100dvh;
        grid-template-columns: minmax(0, 1fr);
    }

    body.app-auth-access .login-v2-visual {
        min-height: 280px;
    }

    body.app-auth-access .login-v2-copy {
        bottom: 90px;
    }

    body.app-auth-access .login-v2-copy p,
    body.app-auth-access .login-v2-rings {
        display: none;
    }

    body.app-auth-access .login-v2-scan {
        left: 18px;
        bottom: 18px;
        width: calc(100% - 36px);
    }

    body.app-auth-access .login-v2-panel {
        width: 100%;
        justify-content: flex-start;
        padding: 22px 18px max(24px, env(safe-area-inset-bottom));
    }
}

@media (max-width: 680px) {
    body.app-auth-access .app-language-switch {
        top: max(10px, env(safe-area-inset-top));
        right: max(10px, env(safe-area-inset-right));
    }

    body.app-auth-access .coach-auth-grid {
        width: min(430px, calc(100% - 20px));
        gap: 12px;
        padding-top: 62px;
    }

    body.app-auth-access .coach-auth-hero {
        min-height: 220px;
    }

    body.app-auth-access .brand-chip {
        min-height: 28px;
        font-size: .66rem;
    }

    body.app-auth-access .coach-auth-hero-copy h1 {
        margin: 12px 0 0;
        font-size: 1.75rem;
    }

    body.app-auth-access .coach-auth-hero-copy p,
    body.app-auth-access .hero-stats {
        display: none;
    }

    body.app-auth-access .auth-card.modern-auth-card.login-card {
        padding: 18px;
    }

    body.app-auth-access .login-app-identity {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 10px;
        margin-bottom: 20px;
        padding-bottom: 14px;
    }

    body.app-auth-access .login-app-badge {
        grid-column: 1 / -1;
        justify-self: stretch;
        white-space: normal;
    }

    body.app-auth-access .login-card-head h3 {
        font-size: 1.6rem;
    }

    body.app-auth-access .login-card-head p {
        font-size: .88rem;
    }

    body.app-auth-access .login-form-stack {
        gap: 12px;
        margin-top: 18px;
    }

    body.app-auth-access .input {
        min-height: 54px;
        grid-template-columns: 38px minmax(0, 1fr) auto;
        padding: 7px 10px;
    }

    body.app-auth-access .input > i {
        width: 38px;
        height: 38px;
    }

    body.app-auth-access .login-remember-option {
        min-height: 30px;
        grid-template-columns: 26px minmax(0, 1fr);
        padding: 2px 0;
    }

    body.app-auth-access .login-remember-control {
        width: 26px;
        height: 26px;
    }

    body.app-auth-access .login-link-row {
        grid-template-columns: minmax(0, 1fr);
    }

    body.app-auth-access .login-v2-visual {
        min-height: 240px;
    }

    body.app-auth-access.app-page-login .login-v2-visual {
        min-height: 300px;
    }

    body.app-auth-access .login-v2-brand {
        top: 14px;
        left: 14px;
        right: 110px;
        width: auto;
        max-width: calc(100% - 132px);
    }

    body.app-auth-access.app-page-login .login-v2-shell,
    body.app-auth-access.app-page-login .login-v2-panel,
    body.app-auth-access.app-page-login .login-form-stack,
    body.app-auth-access.app-page-login .login-card-head,
    body.app-auth-access.app-page-login .login-admin-panel,
    body.app-auth-access.app-page-login .input,
    body.app-auth-access.app-page-login .login-submit {
        min-width: 0;
        max-width: 100%;
    }

    body.app-auth-access.app-page-login .login-card-head p {
        width: 100%;
    }

    body.app-auth-access .login-v2-copy {
        left: 16px;
        right: 16px;
        bottom: 142px;
    }

    body.app-auth-access.app-page-login .login-v2-kicker {
        display: none;
    }

    body.app-auth-access .login-v2-copy h2 {
        margin: 0;
        font-size: 1.85rem;
    }

    body.app-auth-access .login-v2-panel {
        padding: 18px 14px max(22px, env(safe-area-inset-bottom));
    }

    body.app-auth-access .login-myid-button {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }

    body.app-auth-access .login-myid-mark {
        display: none;
    }

    body.app-auth-access .verify-email-steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 420px) {
    body.app-auth-access.app-page-login .app-language-switch {
        top: 10px;
        right: 10px;
        transform: scale(.92);
        transform-origin: top right;
    }

    body.app-auth-access.app-page-login .login-v2-brand {
        right: 104px;
        max-width: calc(100% - 124px);
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 9px;
        padding: 8px;
    }

    body.app-auth-access.app-page-login .login-v2-brand > span {
        width: 40px;
        height: 40px;
    }

    body.app-auth-access.app-page-login .login-v2-brand strong {
        font-size: .92rem;
    }

    body.app-auth-access.app-page-login .login-v2-brand small {
        font-size: .68rem;
    }

    body.app-auth-access .coach-auth-grid {
        width: min(360px, calc(100% - 16px));
    }

    body.app-auth-access .auth-card.modern-auth-card.login-card {
        padding: 16px;
    }

    body.app-auth-access .login-v2-visual {
        min-height: 260px;
    }

    body.app-auth-access.app-page-login .login-v2-visual {
        min-height: 292px;
    }

    body.app-auth-access .login-v2-kicker {
        min-height: 28px;
        padding: 6px 8px;
        font-size: .66rem;
    }

    body.app-auth-access .login-v2-copy h2 {
        font-size: 1.65rem;
    }

    body.app-auth-access .login-v2-scan {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    body.app-auth-access .login-v2-scan > span {
        width: 40px;
        height: 40px;
    }

    body.app-auth-access .login-launch-shell {
        width: calc(100% - 20px);
        padding: 14px;
    }

    body.app-auth-access .login-launch-visual {
        height: 210px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.app-auth-access *,
    body.app-auth-access *::before,
    body.app-auth-access *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}
