* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --bg: #060d18;
    --bg-soft: #0d1828;
    --panel: rgba(9, 17, 30, 0.9);
    --panel-strong: rgba(11, 22, 38, 0.97);
    --panel-elevated: rgba(16, 29, 48, 0.92);
    --border: rgba(154, 176, 210, 0.15);
    --border-strong: rgba(154, 176, 210, 0.24);
    --text: #ecf3ff;
    --muted: #9cafca;
    --muted-strong: #c9d8ef;
    --primary: #6da8ff;
    --primary-strong: #3b82f6;
    --discord: #5865f2;
    --danger: #ef4444;
    --shadow: 0 28px 85px rgba(0, 0, 0, 0.46);
    --shadow-soft: 0 18px 55px rgba(0, 0, 0, 0.25);
}

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

body {
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at 12% 16%, rgba(59, 130, 246, 0.2), transparent 24%),
        radial-gradient(circle at 78% 18%, rgba(88, 101, 242, 0.18), transparent 22%),
        radial-gradient(circle at 82% 82%, rgba(59, 130, 246, 0.16), transparent 24%),
        linear-gradient(135deg, #030712 0%, #07111e 42%, #091626 100%);
    color: var(--text);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 999px;
    filter: blur(10px);
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 320px;
    height: 320px;
    left: -120px;
    top: 12vh;
    background: rgba(109, 168, 255, 0.08);
}

body::after {
    width: 360px;
    height: 360px;
    right: -100px;
    bottom: 10vh;
    background: rgba(88, 101, 242, 0.08);
}

.auth-layout,
.site-footer {
    position: relative;
    z-index: 1;
}

.auth-layout {
    min-height: calc(100vh - 84px);
    width: min(1400px, calc(100% - 88px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(420px, 1.08fr) minmax(420px, 520px);
    gap: clamp(48px, 8vw, 140px);
    align-items: center;
}

.hero-panel,
.login-panel {
    padding: 48px 0;
    display: flex;
    align-items: center;
}

.hero-panel {
    justify-content: flex-start;
}

.hero-panel__content {
    position: relative;
    width: min(100%, 640px);
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid rgba(154, 176, 210, 0.08);
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(8, 16, 29, 0.38) 0%, rgba(8, 16, 29, 0.14) 100%);
    backdrop-filter: blur(8px);
    text-align: left;
}

.hero-panel__content::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top left, rgba(109, 168, 255, 0.12), transparent 38%);
    pointer-events: none;
}

.hero-panel__content > * {
    position: relative;
    z-index: 1;
}

.eyebrow,
.card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(109, 168, 255, 0.22);
    background: rgba(109, 168, 255, 0.08);
    color: #c7dcff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-panel h1 {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
    max-width: 9ch;
}

.hero-panel p,
.subtitle {
    color: var(--muted);
    line-height: 1.8;
    font-size: 1rem;
}

.login-panel {
    justify-content: flex-end;
}

.login-card {
    position: relative;
    overflow: hidden;
    width: min(100%, 500px);
    margin-left: auto;
    background: linear-gradient(180deg, rgba(15, 28, 47, 0.96) 0%, rgba(8, 16, 28, 0.99) 100%);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 34px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top center, rgba(109, 168, 255, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(255,255,255,0.04), transparent 26%);
    pointer-events: none;
}

.login-card > * {
    position: relative;
    z-index: 1;
}

.card-badge {
    width: 100%;
    margin-bottom: 18px;
}

.login-card h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: -0.02em;
}

.subtitle {
    text-align: center;
    max-width: 34ch;
    margin: 0 auto;
}

.alert {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 6px;
    margin: 24px 0 18px;
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(127, 29, 29, 0.22);
    color: #fecaca;
}

.login-actions {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.auth-btn {
    width: 100%;
    min-height: 76px;
    border-radius: 18px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 18px 20px;
    border: 1px solid transparent;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.auth-btn__title {
    font-size: 1rem;
    font-weight: 700;
}

.auth-btn__meta {
    font-size: 0.9rem;
    color: #c7d5ea;
}

.auth-btn--discord {
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    color: #fff;
    box-shadow: 0 16px 34px rgba(88, 101, 242, 0.28);
}

.auth-btn--discord:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 38px rgba(88, 101, 242, 0.32);
}

.auth-btn--muted {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.16);
    color: #d4deed;
    cursor: not-allowed;
    opacity: 0.72;
}

.site-footer {
    width: min(1400px, calc(100% - 88px));
    margin: auto auto 0;
    padding: 18px 0 24px;
    display: flex;
    justify-content: flex-start;
    gap: 26px;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

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

@media (max-width: 1100px) {
    .auth-layout {
        width: min(100%, calc(100% - 40px));
        gap: 34px;
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-panel,
    .login-panel {
        padding: 22px 0;
    }

    .hero-panel__content {
        width: 100%;
        text-align: center;
    }

    .hero-panel h1 {
        margin-inline: auto;
        max-width: 12ch;
    }

    .login-panel {
        justify-content: center;
    }

    .login-card {
        margin: 0 auto;
        width: min(100%, 560px);
    }

    .site-footer {
        width: min(100%, calc(100% - 40px));
    }
}

@media (max-width: 640px) {
    .auth-layout {
        width: min(100%, calc(100% - 24px));
    }

    .hero-panel__content,
    .login-card {
        padding: 24px;
        border-radius: 24px;
    }

    .hero-panel h1 {
        font-size: clamp(2.1rem, 10vw, 3rem);
    }

    .login-card h2 {
        font-size: 1.7rem;
    }

    .site-footer {
        width: min(100%, calc(100% - 24px));
        gap: 18px;
        flex-wrap: wrap;
    }
}


.remember-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    color: rgba(255,255,255,0.88);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.remember-box input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--discord);
}


.privacy-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: flex-start;
    margin-top: 2px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(109, 168, 255, 0.16);
    background: linear-gradient(180deg, rgba(109, 168, 255, 0.08) 0%, rgba(109, 168, 255, 0.04) 100%);
    color: var(--muted-strong);
    line-height: 1.55;
    font-size: 0.94rem;
}

.privacy-note__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(88, 101, 242, 0.18);
    border: 1px solid rgba(88, 101, 242, 0.24);
    font-size: 1rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.privacy-note p {
    margin: 0;
}

.privacy-note strong {
    color: var(--text);
}

.privacy-note a {
    color: #d8e7ff;
    font-weight: 700;
    text-decoration: none;
}

.privacy-note a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .privacy-note {
        grid-template-columns: 1fr;
    }

    .privacy-note__icon {
        width: 30px;
        height: 30px;
    }
}


.login-privacy-card {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.login-privacy {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(232, 240, 255, 0.82);
  text-align: center;
}

.login-privacy strong {
  color: #ffffff;
  font-weight: 700;
}

.login-privacy a {
  color: #9cc8ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(156,200,255,0.35);
}

.login-privacy a:hover {
  color: #c9e1ff;
  border-bottom-color: rgba(201,225,255,0.7);
}


/* === Mobile overhaul (April 2026) === */
@media (max-width: 1100px) {
    .login-panel {
        order: -1;
    }

    .auth-layout {
        gap: 24px;
    }

    .hero-panel__content {
        max-width: 100%;
    }
}

@media (max-width: 720px) {
    body {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .auth-layout {
        width: min(100%, calc(100% - 20px));
        gap: 18px;
    }

    .hero-panel,
    .login-panel {
        padding: 0;
    }

    .hero-panel__content,
    .login-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .hero-panel__content {
        text-align: left;
    }

    .hero-panel h1 {
        max-width: 100%;
        margin-inline: 0;
        font-size: clamp(2rem, 11vw, 2.8rem);
    }

    .login-card {
        width: 100%;
    }

    .login-card h2 {
        font-size: 1.55rem;
    }

    .auth-btn {
        min-height: 68px;
        border-radius: 16px;
        padding: 16px;
    }

    .remember-box {
        align-items: flex-start;
        gap: 0.7rem;
        line-height: 1.45;
    }

    .privacy-note {
        padding: 14px;
        gap: 10px;
        border-radius: 14px;
    }

    .site-footer {
        width: min(100%, calc(100% - 20px));
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 420px) {
    .auth-layout {
        width: min(100%, calc(100% - 16px));
    }

    .hero-panel__content,
    .login-card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .eyebrow,
    .card-badge {
        width: 100%;
        justify-content: center;
        margin-bottom: 16px;
    }

    .subtitle,
    .hero-panel p {
        font-size: 0.96rem;
        line-height: 1.7;
    }

    .auth-btn__meta {
        font-size: 0.84rem;
    }
}
