:root {
    --bg-main: #070b14;
    --bg-card: rgba(10, 20, 34, 0.96);
    --bg-soft: rgba(255, 255, 255, 0.035);
    --accent: #00c2ff;
    --text: #eaf6ff;
    --muted: #8aa0b7;
    --line: rgba(255, 255, 255, 0.06);
    --line-accent: rgba(0, 194, 255, 0.2);
    --warning: #ffd28f;
    --shadow: 0 32px 90px rgba(0, 0, 0, 0.72);
}

* {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html,
body {
    margin: 0;
    min-height: 100%;
    height: 100%;
    color: var(--text);
    background: radial-gradient(circle at top, #0c182a 0%, #070c15 55%);
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.page-bg {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(7, 12, 21, 0.8), rgba(7, 12, 21, 0.92)),
        url('../img/login.png') center/cover no-repeat;
    filter: saturate(0.82);
}

.login-page {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 620px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
}

.login-card {
    width: 100%;
    padding: 18px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top, rgba(0, 194, 255, 0.09), transparent 34%),
        linear-gradient(180deg, rgba(14, 29, 48, 0.98), rgba(9, 18, 31, 1));
    border: 1px solid var(--line-accent);
    box-shadow:
        var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.card-top {
    padding: 24px 24px 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.brand-row {
    display: inline-grid;
    grid-template-columns: 54px auto;
    gap: 14px;
    align-items: center;
    margin: 0 auto 24px;
}

.brand-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(0, 194, 255, 0.16), rgba(0, 194, 255, 0.08));
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.brand-name {
    margin: 0 0 4px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-subtitle,
.intro,
.notice span {
    color: var(--muted);
}

.headline {
    text-align: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.headline h1 {
    margin: 0 0 10px;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.intro {
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.65;
    max-width: 430px;
}

.login-action {
    margin-top: 20px;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--line);
}

.action-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 14px;
}

.action-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.action-state {
    font-size: 13px;
    font-weight: 700;
    color: #95e4ff;
}

.action-state.warning {
    color: var(--warning);
}

.action-copy {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.discord-btn {
    width: 100%;
    padding: 16px 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    background: linear-gradient(180deg, rgba(0, 194, 255, 0.18), rgba(0, 194, 255, 0.11));
    border: 1px solid rgba(0, 194, 255, 0.24);
    box-shadow:
        0 10px 24px rgba(0, 194, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.discord-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 194, 255, 0.16);
    background: linear-gradient(180deg, rgba(0, 194, 255, 0.22), rgba(0, 194, 255, 0.13));
}

.discord-btn.is-disabled {
    pointer-events: none;
    opacity: 0.58;
}

.discord-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--accent);
}

.notice {
    margin-top: 18px;
    padding: 15px 16px;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    text-align: left;
}

.notice i {
    color: var(--accent);
    margin-top: 2px;
}

.notice.warning {
    background: rgba(255, 201, 120, 0.1);
    border-color: rgba(255, 201, 120, 0.16);
}

.notice.warning i,
.notice.warning span {
    color: var(--warning);
}

.notice.compact {
    margin-top: 14px;
    padding-top: 13px;
    padding-bottom: 13px;
}

.flash {
    margin-top: 16px;
    padding: 14px 15px;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid var(--line);
}

.flash-success {
    color: #8dffc1;
    border-color: rgba(123, 224, 165, 0.18);
    background: rgba(123, 224, 165, 0.12);
}

.flash-warning {
    color: var(--warning);
    border-color: rgba(255, 201, 120, 0.18);
    background: rgba(255, 201, 120, 0.12);
}

.flash-danger {
    color: #ffb7b7;
    border-color: rgba(255, 125, 125, 0.18);
    background: rgba(255, 125, 125, 0.12);
}

@media (max-width: 640px) {
    body {
        padding: 12px;
    }

    .login-card {
        padding: 14px;
        border-radius: 20px;
    }

    .card-top {
        padding: 18px 16px 20px;
    }

    .brand-row {
        margin-bottom: 22px;
        grid-template-columns: 48px auto;
    }

    .brand-icon {
        width: 48px;
        height: 48px;
        border-radius: 13px;
    }

    .headline h1 {
        font-size: 34px;
    }

    .intro {
        font-size: 14px;
    }

    .action-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .discord-btn {
        font-size: 16px;
        padding: 16px;
    }
}
