@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    --bg: #080a1d;
    --panel: rgba(18, 20, 51, 0.9);
    --panel-light: #20234c;
    --white: #ffffff;
    --muted: #a8aac5;
    --pink: #ff3e92;
    --pink-light: #ff6eb1;
    --purple: #7c4dff;
    --cyan: #28dcea;
    --yellow: #ffd33d;
    --coral: #ff7357;
    --green: #54e0a0;
    --danger: #ff6b7d;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--white);
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg);
    background-image:
        linear-gradient(90deg, rgba(7, 8, 28, 0.12), rgba(7, 8, 28, 0.32) 48%, rgba(7, 8, 28, 0.8)),
        linear-gradient(0deg, #080a1d 0%, transparent 34%),
        url('../images/bingo-night-bg.png');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: '';
    background: radial-gradient(circle at 74% 26%, rgba(126, 62, 255, 0.18), transparent 27%);
    pointer-events: none;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

.page-shell {
    width: min(1440px, 100%);
    min-height: 100vh;
    margin: auto;
    padding: 26px clamp(24px, 5vw, 78px) 22px;
    display: flex;
    flex-direction: column;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 5;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--white);
    text-decoration: none;
}

.brand-mark {
    position: relative;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font: 900 29px/1 'Outfit', sans-serif;
    transform: rotate(-7deg);
    background: linear-gradient(145deg, var(--pink-light), #ff267e);
    box-shadow: 0 8px 28px rgba(255, 62, 146, 0.38), inset 0 -5px 9px rgba(154, 0, 69, 0.25);
}

.brand-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 10px rgba(255, 211, 61, 0.7);
}

.brand-dot-one { top: -3px; right: 6px; }
.brand-dot-two { top: 4px; right: -4px; background: var(--cyan); }
.brand-dot-three { bottom: 3px; left: -3px; width: 5px; height: 5px; }

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-copy strong {
    font: 800 25px/1 'Outfit', sans-serif;
    letter-spacing: -0.6px;
}

.brand-copy strong span {
    color: var(--pink-light);
}

.brand-copy small {
    margin-top: 5px;
    color: #babbd3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.connection-pill {
    padding: 8px 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    background: rgba(10, 11, 35, 0.55);
    backdrop-filter: blur(12px);
}

.connection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 9px var(--yellow);
}

.connection-pill.is-online .connection-dot {
    background: var(--green);
    box-shadow: 0 0 9px var(--green);
}

.connection-pill.is-offline .connection-dot {
    background: var(--danger);
    box-shadow: 0 0 9px var(--danger);
}

.hero {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.75fr);
    gap: clamp(40px, 7vw, 110px);
    align-items: center;
    padding: 55px 0 35px;
}

.hero-content {
    max-width: 680px;
    padding-left: clamp(0px, 2vw, 28px);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

.eyebrow {
    width: fit-content;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #e8e8f4;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    background: rgba(17, 18, 53, 0.62);
    backdrop-filter: blur(12px);
}

.eyebrow span {
    margin-right: 7px;
    color: var(--cyan);
    text-shadow: 0 0 9px var(--cyan);
}

.hero h1 {
    margin: 23px 0 18px;
    font: 800 clamp(48px, 6vw, 84px)/0.95 'Outfit', sans-serif;
    letter-spacing: -3px;
}

.hero h1 em {
    color: transparent;
    font-style: normal;
    background: linear-gradient(90deg, var(--pink-light), var(--yellow));
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 6px 18px rgba(255, 62, 146, 0.28));
}

.hero-intro {
    max-width: 520px;
    margin: 0;
    color: #d1d2e2;
    font-size: clamp(16px, 1.45vw, 20px);
    line-height: 1.65;
    font-weight: 600;
}

.feature-row {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 38px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 17px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}

.feature-icon.pink { color: var(--pink-light); background: rgba(255, 62, 146, 0.17); }
.feature-icon.cyan { color: var(--cyan); background: rgba(40, 220, 234, 0.15); }
.feature-icon.yellow { color: var(--yellow); background: rgba(255, 211, 61, 0.14); }

.feature > span:last-child {
    display: flex;
    flex-direction: column;
}

.feature strong {
    font-size: 13px;
    line-height: 1.2;
}

.feature small {
    margin-top: 4px;
    color: #a6a8c0;
    font-size: 11px;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 485px;
    justify-self: end;
    padding: 34px 38px 25px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 30px;
    background: linear-gradient(155deg, rgba(27, 29, 70, 0.96), rgba(13, 14, 39, 0.94));
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(24px);
}

.auth-card::before {
    position: absolute;
    inset: -1px;
    z-index: -1;
    padding: 1px;
    border-radius: inherit;
    content: '';
    background: linear-gradient(145deg, rgba(255,255,255,0.22), transparent 45%, rgba(255,62,146,0.26));
}

.auth-decoration {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 900;
    pointer-events: none;
}

.ball-18 {
    top: -21px;
    right: 34px;
    width: 46px;
    height: 46px;
    color: #523c00;
    background: radial-gradient(circle at 35% 25%, #fff5a3, var(--yellow) 53%, #e7a900 100%);
    box-shadow: 0 10px 25px rgba(255, 196, 0, 0.28);
    transform: rotate(8deg);
}

.ball-7 {
    bottom: 46px;
    left: -24px;
    width: 48px;
    height: 48px;
    color: #fff;
    background: radial-gradient(circle at 35% 25%, #79f5ff, #11b6d1 55%, #08788f);
    box-shadow: 0 10px 25px rgba(40, 220, 234, 0.25);
    transform: rotate(-11deg);
}

.auth-heading {
    text-align: center;
}

.mini-balls {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 11px;
}

.mini-balls i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pink);
}

.mini-balls i:nth-child(2) { background: var(--yellow); }
.mini-balls i:nth-child(3) { background: var(--cyan); }

.auth-heading p {
    margin: 0 0 4px;
    color: var(--pink-light);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.auth-heading h2 {
    margin: 0;
    font: 700 27px/1.25 'Outfit', sans-serif;
}

.auth-tabs {
    position: relative;
    margin: 24px 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

.auth-tab {
    padding: 0 0 13px;
    border: 0;
    color: #8e90ad;
    font-weight: 800;
    background: transparent;
    cursor: pointer;
    transition: color 180ms ease;
}

.auth-tab.is-active {
    color: var(--white);
}

.tab-indicator {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 50%;
    height: 3px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    box-shadow: 0 0 15px rgba(255, 62, 146, 0.5);
    transition: transform 220ms ease;
}

.auth-tabs.is-register .tab-indicator {
    transform: translateX(100%);
}

.auth-panel {
    animation: panelIn 250ms ease;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

.field,
.field > span:first-child {
    display: block;
}

.field {
    margin-bottom: 14px;
}

.field > span:first-child {
    margin: 0 0 7px 2px;
    color: #d8d9e8;
    font-size: 11px;
    font-weight: 800;
}

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

.input-wrap svg {
    position: absolute;
    left: 14px;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #8588a7;
    stroke-width: 1.8;
    pointer-events: none;
}

.input-wrap svg + input {
    padding-left: 43px;
}

input[type='text'],
input[type='email'],
input[type='password'] {
    width: 100%;
    height: 47px;
    padding: 0 43px 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    outline: 0;
    border-radius: 12px;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    background: rgba(6, 7, 28, 0.52);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
    color: #696c8c;
}

input:focus {
    border-color: rgba(255, 62, 146, 0.65);
    background: rgba(7, 8, 30, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 62, 146, 0.1);
}

input.is-invalid {
    border-color: var(--danger);
}

.password-toggle {
    position: absolute;
    right: 8px;
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 8px;
    opacity: 0.6;
    background: transparent;
    cursor: pointer;
}

.form-options {
    margin: 2px 1px 19px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaacc3;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.check-label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.check-label > span {
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border: 1px solid #565a7e;
    border-radius: 5px;
    background: rgba(8,9,30,0.5);
}

.check-label input:checked + span {
    border-color: var(--pink);
    background: var(--pink);
}

.check-label input:checked + span::after {
    content: '✓';
    color: white;
    font-size: 11px;
    font-weight: 900;
}

.text-button {
    padding: 3px;
    border: 0;
    color: var(--pink-light);
    font-size: 11px;
    font-weight: 800;
    background: transparent;
    cursor: pointer;
}

.submit-button {
    width: 100%;
    height: 50px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border: 0;
    border-radius: 13px;
    color: white;
    font-weight: 900;
    background: linear-gradient(100deg, #ff367f, #8d45ff);
    box-shadow: 0 12px 29px rgba(183, 45, 159, 0.32), inset 0 1px rgba(255,255,255,0.22);
    cursor: pointer;
    transition: transform 160ms ease, filter 160ms ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

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

.submit-button:disabled {
    opacity: 0.58;
    cursor: wait;
    transform: none;
}

.submit-button b {
    font-size: 18px;
}

.register-button {
    margin-top: 17px;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.terms {
    margin-top: 3px;
    line-height: 1.45;
}

.form-message {
    display: none;
    margin: -7px 0 14px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
}

.form-message.is-visible {
    display: block;
}

.form-message.is-error {
    color: #ffbdc7;
    border: 1px solid rgba(255, 107, 125, 0.22);
    background: rgba(255, 107, 125, 0.1);
}

.form-message.is-success {
    color: #a9f7d2;
    border: 1px solid rgba(84, 224, 160, 0.2);
    background: rgba(84, 224, 160, 0.1);
}

.secure-note {
    margin: 19px 0 0;
    color: #686b89;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.25px;
    text-align: center;
    text-transform: uppercase;
}

.secure-note span {
    margin-right: 5px;
    color: var(--green);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #656884;
    font-size: 10px;
    font-weight: 700;
}

.site-footer p {
    margin: 0;
}

.site-footer nav {
    display: flex;
    gap: 23px;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--white);
}

@media (max-width: 960px) {
    body {
        background-position: 35% center;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-content {
        max-width: 750px;
        padding: 30px 0 0;
        text-align: center;
        justify-self: center;
    }

    .eyebrow,
    .hero-intro {
        margin-left: auto;
        margin-right: auto;
    }

    .feature-row {
        justify-content: center;
    }

    .auth-card {
        justify-self: center;
    }
}

@media (max-width: 560px) {
    .page-shell {
        padding: 18px 16px;
    }

    .brand-copy strong {
        font-size: 20px;
    }

    .brand-copy small {
        font-size: 8px;
    }

    .brand-mark {
        width: 45px;
        height: 45px;
    }

    .connection-text {
        display: none;
    }

    .connection-pill {
        padding: 10px;
    }

    .hero {
        padding-top: 32px;
    }

    .hero h1 {
        font-size: clamp(43px, 13vw, 62px);
        letter-spacing: -2px;
    }

    .feature-row {
        display: grid;
        grid-template-columns: 1fr;
        width: fit-content;
        margin: 30px auto 0;
        text-align: left;
    }

    .auth-card {
        padding: 31px 21px 23px;
        border-radius: 24px;
    }

    .field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ball-7 {
        left: -12px;
    }

    .site-footer {
        flex-direction: column;
        gap: 12px;
    }
}

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