/* EskHype premium auth screens */
:root {
    --violet: #8b5cf6;
    --pink: #ec4899;
    --dark: #050510;
    --panel: rgba(13, 13, 30, 0.72);
    --stroke: rgba(255, 255, 255, 0.14);
    --text: #ffffff;
    --muted: #a8b0c7;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--dark);
    overflow-x: hidden;
}

body.login-page { --auth-bg: url('../img/login-bg.png'); }
body.register-page { --auth-bg: url('../img/register-club-bg.png'); }

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(105deg, rgba(3, 4, 13, .93) 0%, rgba(10, 8, 28, .72) 48%, rgba(7, 4, 18, .9) 100%),
        radial-gradient(circle at 18% 14%, rgba(139, 92, 246, .42), transparent 30%),
        radial-gradient(circle at 82% 26%, rgba(236, 72, 153, .30), transparent 34%),
        var(--auth-bg);
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        radial-gradient(circle at 50% 100%, rgba(139, 92, 246, .2), transparent 38%);
    background-size: 100% 4px, auto;
    mix-blend-mode: screen;
    opacity: .45;
}

.auth-shell {
    width: min(1180px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: minmax(340px, 1fr) minmax(390px, 520px);
    align-items: center;
    gap: clamp(34px, 6vw, 86px);
}

.register-page .auth-shell {
    grid-template-columns: minmax(320px, .95fr) minmax(440px, 560px);
}

.auth-brand-panel {
    position: relative;
    padding: clamp(26px, 4vw, 46px);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)), rgba(7,7,18,.42);
    box-shadow: 0 30px 90px rgba(0,0,0,.42);
    overflow: hidden;
}

.auth-brand-panel::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -95px;
    top: -105px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236,72,153,.42), transparent 67%);
}

.auth-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -.04em;
    font-size: 1.45rem;
}

.auth-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(167,139,250,.55));
}

.auth-eyebrow {
    position: relative;
    margin-top: 52px;
    color: #c4b5fd;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.auth-title {
    position: relative;
    margin: 14px 0 18px;
    max-width: 620px;
    font-size: clamp(3.2rem, 6vw, 5.8rem);
    line-height: .88;
    letter-spacing: -.075em;
    font-weight: 900;
}

.auth-title .gradient-word {
    background: linear-gradient(110deg, #fff 0%, #a78bfa 38%, #f472b6 70%, #fff 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: authShine 5s linear infinite;
    filter: drop-shadow(0 0 22px rgba(139,92,246,.35));
}

@keyframes authShine { to { background-position: 220% center; } }

.auth-copy {
    position: relative;
    max-width: 560px;
    margin: 0;
    color: #cbd5e1;
    font-size: 1.04rem;
    line-height: 1.75;
}

.auth-points {
    position: relative;
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.auth-point {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    min-width: 260px;
    padding: 13px 15px;
    border-radius: 18px;
    color: #e5e7eb;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10);
}

.auth-point i {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--pink));
    box-shadow: 0 10px 24px rgba(139,92,246,.28);
}

.auth-stats {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.auth-stat {
    min-width: 128px;
    padding: 15px 16px;
    border-radius: 20px;
    background: rgba(0,0,0,.24);
    border: 1px solid rgba(255,255,255,.09);
}

.auth-stat strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1;
}

.auth-stat span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: .83rem;
}

.auth-container {
    width: 100%;
    padding: clamp(26px, 4vw, 42px);
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045)), var(--panel);
    border: 1px solid var(--stroke);
    box-shadow: 0 34px 100px rgba(0,0,0,.56), inset 0 1px 0 rgba(255,255,255,.16);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation: cardIn .65s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(22px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-card-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #ddd6fe;
    background: rgba(139,92,246,.14);
    border: 1px solid rgba(167,139,250,.22);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-header h2 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.15rem);
    line-height: .98;
    letter-spacing: -.06em;
    font-weight: 900;
}

.auth-header p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

.emoji-fix {
    display: inline-block;
    -webkit-text-fill-color: initial;
    filter: drop-shadow(0 0 12px rgba(255,255,255,.22));
}

.auth-mini-link {
    flex: 0 0 auto;
    padding: 10px 13px;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.055);
    font-size: .86rem;
    font-weight: 800;
}

.auth-mini-link:hover {
    border-color: rgba(167,139,250,.52);
    box-shadow: 0 0 22px rgba(139,92,246,.20);
}

.form-group {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #8f9ab3;
    pointer-events: none;
    transition: color .22s ease, transform .22s ease;
}

.form-input {
    width: 100%;
    min-height: 56px;
    padding: 0 18px 0 50px;
    border-radius: 17px;
    color: #fff;
    font: inherit;
    font-size: .98rem;
    outline: none;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(3,6,18,.54);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.form-input::placeholder { color: #6f7890; }

.form-input:focus {
    border-color: rgba(167,139,250,.75);
    background: rgba(6,9,24,.78);
    box-shadow: 0 0 0 4px rgba(139,92,246,.14), 0 0 28px rgba(139,92,246,.24), inset 0 1px 0 rgba(255,255,255,.08);
}

.form-group:focus-within .input-icon {
    color: #c4b5fd;
    transform: translateY(-50%) scale(1.05);
}

.auth-consent {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 8px 0 20px;
    color: #a8b0c7;
    font-size: .88rem;
    line-height: 1.55;
}

.auth-consent input {
    margin-top: 4px;
    accent-color: #a78bfa;
}

.auth-consent a {
    color: #c4b5fd;
    font-weight: 800;
    text-decoration: none;
}

.btn-neon {
    position: relative;
    width: 100%;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #c026d3 48%, #f472b6 100%);
    box-shadow: 0 18px 38px rgba(139,92,246,.33), inset 0 1px 0 rgba(255,255,255,.22);
    font: inherit;
    font-weight: 900;
    font-size: 1.02rem;
    cursor: pointer;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-neon::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%) skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
    transition: transform .7s ease;
}

.btn-neon:hover {
    transform: translateY(-2px);
    filter: saturate(1.12);
    box-shadow: 0 24px 48px rgba(139,92,246,.42), 0 0 32px rgba(236,72,153,.28);
}

.btn-neon:hover::before { transform: translateX(120%) skewX(-18deg); }
.btn-neon:active { transform: translateY(0); }

.auth-links {
    margin-top: 24px;
    color: var(--muted);
    text-align: center;
    font-size: .94rem;
}

.auth-links p { margin: 0; }

.auth-links a {
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 900;
}

.auth-links a:hover {
    color: #fff;
    text-shadow: 0 0 14px rgba(167,139,250,.65);
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: #778198 !important;
    font-weight: 700 !important;
}

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 15px;
    margin-bottom: 18px;
    border-radius: 16px;
    color: #bbf7d0;
    background: rgba(34,197,94,.10);
    border: 1px solid rgba(34,197,94,.24);
    font-size: .92rem;
}

.alert-danger {
    color: #fecaca;
    background: rgba(239,68,68,.10);
    border-color: rgba(239,68,68,.24);
}

.sms-actions { display: grid; gap: 12px; }

.btn-secondary-auth {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: none;
}

@media (max-width: 960px) {
    .auth-shell,
    .register-page .auth-shell {
        grid-template-columns: 1fr;
        width: min(620px, calc(100% - 28px));
        gap: 20px;
        padding: 28px 0;
    }

    .auth-brand-panel {
        padding: 24px;
        border-radius: 28px;
    }

    .auth-eyebrow { margin-top: 30px; }
    .auth-title { font-size: clamp(2.7rem, 13vw, 4.4rem); }

    .auth-point {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .auth-shell,
    .register-page .auth-shell {
        width: min(100% - 24px, 520px);
        padding: 18px 0;
    }

    .auth-brand-panel { display: none; }

    .auth-container {
        padding: 24px 18px;
        border-radius: 26px;
    }

    .auth-card-top { display: block; }

    .auth-mini-link {
        display: inline-flex;
        margin-top: 18px;
    }

    .auth-header h2 { font-size: 2.2rem; }
}
