/* CLUBIO_STAGE29B_AUTH_UI */
:root {
    --ca-navy: #0b2745;
    --ca-navy-deep: #061a30;
    --ca-blue: #145f91;
    --ca-sky: #2aa4c8;
    --ca-cyan: #48c5d4;
    --ca-mint: #62d2b1;
    --ca-ink: #10273e;
    --ca-muted: #64798d;
    --ca-line: #dce8f0;
    --ca-soft: #f4f9fc;
    --ca-white: #ffffff;
}

* { box-sizing: border-box; }

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

body.clubio-auth {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ca-ink);
    background: #eef6fa;
    font-family: 'Manrope', sans-serif;
}

.clubio-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(450px, .86fr);
}

.clubio-auth-story {
    position: relative;
    min-height: 100vh;
    padding: clamp(42px, 5vw, 78px);
    display: grid;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 12%, rgba(72,197,212,.21), transparent 28%),
        radial-gradient(circle at 86% 78%, rgba(98,210,177,.14), transparent 30%),
        linear-gradient(145deg, #f9fcfe 0%, #eef8fb 48%, #e4f1f7 100%);
}

.clubio-auth-story::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .48;
    background-image:
        linear-gradient(rgba(20,95,145,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20,95,145,.055) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(135deg, #000 20%, transparent 84%);
}

.clubio-auth-super .clubio-auth-story {
    background:
        radial-gradient(circle at 12% 12%, rgba(42,164,200,.22), transparent 28%),
        radial-gradient(circle at 82% 76%, rgba(32,92,152,.14), transparent 32%),
        linear-gradient(145deg, #f8fbfe 0%, #edf5fa 50%, #e3eef6 100%);
}

.clubio-auth-story-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.clubio-auth-logo {
    display: block;
    width: min(100%, 360px);
    height: auto;
    margin: 0 0 48px;
    object-fit: contain;
    object-position: left center;
}

.clubio-auth-kicker {
    margin-bottom: 15px;
    color: var(--ca-blue);
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
}

.clubio-auth-story h1 {
    max-width: 680px;
    margin: 0;
    color: var(--ca-navy);
    font-family: 'Sora', sans-serif;
    font-size: clamp(40px, 5vw, 70px);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -.055em;
}

.clubio-auth-story h1 span {
    color: var(--ca-blue);
    background: linear-gradient(100deg, var(--ca-blue), var(--ca-sky));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.clubio-auth-lead {
    max-width: 620px;
    margin: 24px 0 0;
    color: var(--ca-muted);
    font-size: 16px;
    line-height: 1.75;
    font-weight: 600;
}

.clubio-auth-feature-grid {
    max-width: 680px;
    margin-top: 38px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.clubio-auth-feature {
    min-width: 0;
    padding: 15px 16px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    border: 1px solid rgba(20,95,145,.13);
    border-radius: 18px;
    background: rgba(255,255,255,.70);
    box-shadow: 0 10px 28px rgba(11,39,69,.045);
    backdrop-filter: blur(10px);
}

.clubio-auth-feature-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--ca-blue);
    background: linear-gradient(145deg, rgba(42,164,200,.15), rgba(98,210,177,.10));
    border: 1px solid rgba(42,164,200,.15);
}

.clubio-auth-feature-icon svg,
.clubio-auth-input-wrap svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.clubio-auth-feature strong,
.clubio-auth-feature small { display: block; }

.clubio-auth-feature strong {
    overflow: hidden;
    color: var(--ca-navy);
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.clubio-auth-feature small {
    margin-top: 4px;
    overflow: hidden;
    color: var(--ca-muted);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.clubio-auth-story-footer {
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #698094;
    font-size: 11px;
    font-weight: 700;
}

.clubio-auth-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #20a976;
    box-shadow: 0 0 0 5px rgba(32,169,118,.11);
}

.clubio-auth-sport-mark {
    position: absolute;
    right: -128px;
    bottom: -142px;
    width: 360px;
    height: 360px;
    border: 2px solid rgba(20,95,145,.08);
    border-radius: 50%;
}

.clubio-auth-sport-mark::before,
.clubio-auth-sport-mark::after,
.clubio-auth-sport-mark span {
    content: "";
    position: absolute;
    border: 2px solid rgba(20,95,145,.07);
    border-radius: 50%;
}

.clubio-auth-sport-mark::before { inset: 48px; }
.clubio-auth-sport-mark::after { inset: 108px; }
.clubio-auth-sport-mark span:nth-child(1) { width: 170px; height: 80px; left: 92px; top: 18px; transform: rotate(32deg); }
.clubio-auth-sport-mark span:nth-child(2) { width: 90px; height: 190px; left: 26px; top: 94px; transform: rotate(-22deg); }
.clubio-auth-sport-mark span:nth-child(3) { width: 96px; height: 190px; right: 28px; top: 98px; transform: rotate(24deg); }

.clubio-auth-access {
    position: relative;
    min-height: 100vh;
    padding: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 90% 5%, rgba(42,164,200,.08), transparent 25%),
        #ffffff;
}

.clubio-auth-card {
    width: 100%;
    max-width: 490px;
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid var(--ca-line);
    border-radius: 28px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 28px 80px rgba(11,39,69,.11), 0 3px 14px rgba(11,39,69,.05);
}

.clubio-auth-card-mark {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    display: grid;
    place-items: center;
    border-radius: 19px;
    border: 1px solid rgba(20,95,145,.12);
    background: linear-gradient(145deg, #f2f9fc, #e8f4f8);
    box-shadow: 0 12px 26px rgba(11,39,69,.08);
}

.clubio-auth-card-mark img { width: 42px; height: 42px; object-fit: contain; }

.clubio-auth-card-kicker {
    color: var(--ca-blue);
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.clubio-auth-card h2 {
    margin: 8px 0 0;
    color: var(--ca-navy);
    font-family: 'Sora', sans-serif;
    font-size: clamp(29px, 3.1vw, 38px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.04em;
}

.clubio-auth-card-copy {
    margin: 12px 0 0;
    color: var(--ca-muted);
    font-size: 13px;
    line-height: 1.65;
    font-weight: 600;
}

.clubio-auth-alert {
    margin-top: 20px;
    padding: 12px 14px;
    border: 1px solid rgba(206,55,75,.20);
    border-radius: 13px;
    color: #ae3044;
    background: rgba(206,55,75,.07);
    font-size: 12px;
    font-weight: 800;
}

.clubio-auth-form { margin-top: 28px; display: grid; gap: 18px; }

.clubio-auth-field { display: grid; gap: 8px; }

.clubio-auth-field > span:first-child {
    color: #344d64;
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .035em;
}

.clubio-auth-input-wrap { position: relative; display: block; }

.clubio-auth-input-wrap svg {
    position: absolute;
    z-index: 1;
    left: 15px;
    top: 50%;
    width: 19px;
    height: 19px;
    color: #7990a2;
    transform: translateY(-50%);
    pointer-events: none;
}

.clubio-auth-input-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 15px 0 46px;
    border: 1px solid #d7e4ec;
    border-radius: 14px;
    outline: none;
    color: var(--ca-ink);
    background: #f9fcfd;
    font: 600 13px/1 'Manrope', sans-serif;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.clubio-auth-input-wrap input::placeholder { color: #9aabb9; }

.clubio-auth-input-wrap input:focus {
    border-color: var(--ca-sky);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(42,164,200,.11);
}

.clubio-auth-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #61778a;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.clubio-auth-remember input { width: 16px; height: 16px; accent-color: var(--ca-blue); }

.clubio-auth-submit {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(110deg, var(--ca-navy), var(--ca-blue));
    box-shadow: 0 14px 30px rgba(11,39,69,.19);
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .025em;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.clubio-auth-submit:hover { transform: translateY(-1px); box-shadow: 0 18px 34px rgba(11,39,69,.24); }
.clubio-auth-submit:focus-visible { outline: 3px solid rgba(42,164,200,.26); outline-offset: 3px; }
.clubio-auth-submit span:last-child { font-size: 19px; font-weight: 600; }

.clubio-auth-security {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #708597;
    font-size: 10px;
    font-weight: 700;
}

.clubio-auth-security span { color: #1b9b6b; }

.clubio-auth-card-footer {
    margin-top: 26px;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #e6eef3;
    color: #73889a;
    font-size: 10px;
    font-weight: 700;
}

.clubio-auth-card-footer a {
    color: var(--ca-blue);
    font-weight: 900;
    text-decoration: none;
}

.clubio-auth-card-footer a:hover { text-decoration: underline; }

.clubio-auth-copyright {
    margin: 22px 0 0;
    color: #8ba0af;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 1120px) {
    .clubio-auth-shell { grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr); }
    .clubio-auth-story { padding: 46px; }
    .clubio-auth-feature-grid { grid-template-columns: 1fr; }
    .clubio-auth-feature:nth-child(n+4) { display: none; }
}

@media (max-width: 860px) {
    .clubio-auth-shell { display: block; }
    .clubio-auth-story { min-height: auto; padding: 30px 24px 34px; }
    .clubio-auth-story-inner { max-width: 620px; }
    .clubio-auth-logo { width: 240px; margin-bottom: 24px; }
    .clubio-auth-kicker { margin-bottom: 9px; font-size: 10px; }
    .clubio-auth-story h1 { font-size: clamp(32px, 8vw, 48px); }
    .clubio-auth-lead { margin-top: 14px; font-size: 13px; line-height: 1.6; }
    .clubio-auth-feature-grid { margin-top: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .clubio-auth-feature:nth-child(n+3) { display: none; }
    .clubio-auth-story-footer { margin-top: 20px; }
    .clubio-auth-access { min-height: auto; padding: 36px 20px 28px; }
    .clubio-auth-card { max-width: 560px; }
}

@media (max-width: 560px) {
    .clubio-auth-story { padding: 24px 18px 26px; }
    .clubio-auth-logo { width: 210px; }
    .clubio-auth-story h1 { letter-spacing: -.045em; }
    .clubio-auth-feature-grid { grid-template-columns: 1fr; gap: 9px; }
    .clubio-auth-feature:nth-child(2) { display: none; }
    .clubio-auth-feature { padding: 12px; }
    .clubio-auth-story-footer { font-size: 9px; }
    .clubio-auth-access { padding: 26px 14px 22px; }
    .clubio-auth-card { padding: 25px 20px; border-radius: 22px; }
    .clubio-auth-card-mark { width: 56px; height: 56px; border-radius: 17px; }
    .clubio-auth-card-mark img { width: 37px; height: 37px; }
    .clubio-auth-card-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .clubio-auth-submit, .clubio-auth-input-wrap input { transition: none; }
}
