:root {
    --winner-bg: #06131b;
    --winner-bg-2: #091c26;
    --winner-panel: rgba(11, 29, 39, .82);
    --winner-panel-solid: #0b1d27;
    --winner-border: rgba(255, 255, 255, .10);
    --winner-border-strong: rgba(255, 255, 255, .16);
    --winner-text: #f7fbfd;
    --winner-muted: #8ea6b2;
    --winner-muted-2: #647f8b;
    --winner-brand: #16d6df;
    --winner-brand-2: #0fa4c5;
    --winner-pink: #ef4a98;
    --winner-success: #2bd29b;
    --winner-danger: #ff7b7b;
    --winner-shadow: 0 32px 90px rgba(0, 0, 0, .34);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--winner-bg);
}

body.winner-auth {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    color: var(--winner-text);
    background:
        radial-gradient(circle at 12% 14%, rgba(14, 182, 207, .15), transparent 30rem),
        radial-gradient(circle at 92% 86%, rgba(239, 74, 152, .08), transparent 28rem),
        linear-gradient(135deg, #041018 0%, #081820 52%, #06131b 100%);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.winner-auth::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom right, black, transparent 72%);
}

.winner-auth-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(390px, .95fr) minmax(480px, 1.05fr);
    min-height: 100vh;
    min-height: 100svh;
}

.winner-auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: clamp(34px, 5vw, 72px);
    overflow: hidden;
    border-right: 1px solid var(--winner-border);
    background:
        linear-gradient(180deg, rgba(6, 24, 34, .88), rgba(4, 17, 25, .96));
}

.winner-auth-brand::after {
    content: "";
    position: absolute;
    right: -180px;
    bottom: 4%;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(20, 213, 223, .15);
    border-radius: 50%;
    box-shadow:
        0 0 0 64px rgba(20, 213, 223, .025),
        0 0 0 128px rgba(20, 213, 223, .018);
}

.winner-brand-top,
.winner-brand-copy,
.winner-brand-footer {
    position: relative;
    z-index: 1;
}

.winner-brand-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.winner-logo {
    display: block;
    width: min(270px, 68%);
    height: auto;
}

.winner-env-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(43, 210, 155, .22);
    border-radius: 999px;
    color: #8ff0ca;
    background: rgba(43, 210, 155, .07);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.winner-brand-copy {
    width: min(630px, 100%);
    margin: auto 0;
    padding: 70px 0;
}

.winner-kicker,
.winner-login-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--winner-brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.winner-brand-copy h1 {
    max-width: 650px;
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 4vw, 70px);
    font-weight: 820;
    line-height: .98;
    letter-spacing: -.055em;
}

.winner-brand-copy > p {
    max-width: 570px;
    margin: 28px 0 0;
    color: #9db2bc;
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.7;
}

.winner-feature-grid {
    display: grid;
    gap: 12px;
    max-width: 620px;
    margin-top: 40px;
}

.winner-feature {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 18px;
    background: rgba(255,255,255,.025);
    backdrop-filter: blur(8px);
}

.winner-feature-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(22, 214, 223, .24);
    border-radius: 13px;
    color: var(--winner-brand);
    background: rgba(22, 214, 223, .08);
    font-size: 19px;
    font-weight: 800;
}

.winner-feature strong {
    display: block;
    color: #eaf4f8;
    font-size: 14px;
    font-weight: 750;
}

.winner-feature small {
    display: block;
    margin-top: 3px;
    color: var(--winner-muted);
    font-size: 12px;
    line-height: 1.4;
}

.winner-brand-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #728c98;
    font-size: 12px;
}

.winner-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--winner-success);
    box-shadow: 0 0 0 5px rgba(43, 210, 155, .08);
}

.winner-auth-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: clamp(32px, 6vw, 84px);
}

.winner-login-card {
    width: min(480px, 100%);
    padding: clamp(30px, 4vw, 46px);
    border: 1px solid var(--winner-border);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(15, 36, 47, .94), rgba(8, 24, 33, .96));
    box-shadow: var(--winner-shadow);
    backdrop-filter: blur(18px);
}

.winner-mobile-logo-wrap {
    display: none;
}

.winner-login-heading {
    margin-bottom: 30px;
}

.winner-login-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 820;
    letter-spacing: -.04em;
}

.winner-login-heading p {
    margin: 9px 0 0;
    color: var(--winner-muted);
    font-size: 14px;
    line-height: 1.55;
}

.winner-login-form {
    display: grid;
    gap: 21px;
}

.winner-field label {
    display: block;
    color: #c9d9e0;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: .01em;
}

.winner-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.winner-label-row label {
    margin: 0;
}

.winner-secure-label {
    color: #688590;
    font-size: 10px;
    font-weight: 650;
}

.winner-field > label {
    margin-bottom: 8px;
}

.winner-input-shell {
    position: relative;
    display: flex;
    align-items: center;
}

.winner-input-shell input {
    width: 100%;
    height: 56px;
    padding: 0 52px 0 46px;
    border: 1px solid var(--winner-border);
    outline: 0;
    border-radius: 16px;
    color: #f8fcfd;
    background: rgba(2, 16, 23, .72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
    font: inherit;
    font-size: 15px;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease,
        transform .18s ease;
}

.winner-input-shell input::placeholder {
    color: #56717d;
}

.winner-input-shell input:hover {
    border-color: var(--winner-border-strong);
    background: rgba(4, 20, 28, .9);
}

.winner-input-shell input:focus {
    border-color: rgba(22, 214, 223, .6);
    background: #071b24;
    box-shadow: 0 0 0 4px rgba(22, 214, 223, .08);
}

.winner-input-icon {
    position: absolute;
    left: 15px;
    z-index: 1;
    display: grid;
    place-items: center;
    color: #64808c;
    pointer-events: none;
}

.winner-input-shell:focus-within .winner-input-icon {
    color: var(--winner-brand);
}

.winner-password-toggle {
    position: absolute;
    right: 8px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 11px;
    color: #718b96;
    background: transparent;
    cursor: pointer;
}

.winner-password-toggle:hover {
    color: #c8d9df;
    background: rgba(255,255,255,.055);
}

.winner-login-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 58px;
    margin-top: 4px;
    padding: 0 18px 0 21px;
    border: 0;
    border-radius: 17px;
    color: #03161c;
    background:
        linear-gradient(135deg, #32e2e5 0%, #16c7d7 45%, #1eaed6 100%);
    box-shadow:
        0 14px 32px rgba(13, 176, 200, .20),
        inset 0 1px 0 rgba(255,255,255,.38);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: -.01em;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.winner-login-button:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow:
        0 18px 38px rgba(13, 176, 200, .25),
        inset 0 1px 0 rgba(255,255,255,.38);
}

.winner-login-button:active {
    transform: translateY(0);
}

.winner-login-arrow {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    background: rgba(0, 31, 38, .10);
    font-size: 19px;
}

.winner-alert {
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    gap: 10px;
    margin: -10px 0 22px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.45;
}

.winner-alert-error {
    border: 1px solid rgba(255, 123, 123, .20);
    color: #ffc0c0;
    background: rgba(255, 93, 93, .08);
}

.winner-alert-success {
    border: 1px solid rgba(43, 210, 155, .20);
    color: #a7f4d7;
    background: rgba(43, 210, 155, .07);
}

.winner-alert-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    background: rgba(255,255,255,.06);
    font-weight: 900;
}

.winner-login-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 24px;
    color: #617d88;
    font-size: 10px;
    text-align: center;
}

.winner-meta-lock {
    color: var(--success, #2bd29b);
    font-size: 7px;
}

.winner-login-copyright {
    width: min(480px, 100%);
    margin: 20px 0 0;
    color: #526e79;
    font-size: 10px;
    text-align: center;
}

@media (max-width: 980px) {
    .winner-auth-shell {
        grid-template-columns: minmax(320px, .85fr) minmax(440px, 1.15fr);
    }

    .winner-auth-brand {
        padding: 34px;
    }

    .winner-brand-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .winner-brand-copy h1 {
        font-size: 46px;
    }

    .winner-feature-grid {
        display: none;
    }
}

@media (max-width: 760px) {
    body.winner-auth {
        background:
            radial-gradient(circle at 86% 5%, rgba(22, 214, 223, .15), transparent 18rem),
            radial-gradient(circle at 4% 88%, rgba(239, 74, 152, .08), transparent 18rem),
            var(--winner-bg);
    }

    body.winner-auth::before {
        opacity: .10;
    }

    .winner-auth-shell {
        display: block;
        min-height: 100svh;
    }

    .winner-auth-brand {
        display: none;
    }

    .winner-auth-main {
        min-height: 100svh;
        justify-content: flex-start;
        padding:
            max(24px, env(safe-area-inset-top))
            16px
            max(22px, env(safe-area-inset-bottom));
    }

    .winner-login-card {
        margin: auto 0;
        padding: 26px 20px 24px;
        border-radius: 25px;
        box-shadow: 0 24px 60px rgba(0,0,0,.32);
    }

    .winner-mobile-logo-wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 56px;
        margin-bottom: 28px;
    }

    .winner-mobile-logo {
        display: block;
        width: 188px;
        max-width: 62vw;
        height: auto;
    }

    .winner-login-heading {
        margin-bottom: 25px;
    }

    .winner-login-heading h2 {
        font-size: 32px;
    }

    .winner-login-heading p {
        font-size: 13px;
    }

    .winner-input-shell input {
        height: 54px;
        border-radius: 15px;
        font-size: 16px; /* Avoid iOS zoom */
    }

    .winner-login-button {
        min-height: 56px;
        border-radius: 16px;
    }

    .winner-login-copyright {
        margin-top: 16px;
    }
}

@media (max-width: 380px) {
    .winner-auth-main {
        padding-left: 12px;
        padding-right: 12px;
    }

    .winner-login-card {
        padding-left: 17px;
        padding-right: 17px;
        border-radius: 22px;
    }

    .winner-mobile-logo {
        width: 168px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
