.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.25), transparent 35%),
        linear-gradient(135deg, #111827, #0b1220);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 36px;
    border-radius: 28px;
    background: rgba(12, 21, 34, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.login-card h1 {
    margin: 8px 0 8px;
    font-size: 32px;
}

.login-desc {
    margin: 0 0 28px;
    color: #94a3b8;
}

.login-card label {
    display: block;
    margin-bottom: 18px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
}

.login-card input {
    width: 100%;
    height: 48px;
    margin-top: 8px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    outline: none;
    font-size: 16px;
}

.login-card button {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 16px;
    background: #3b82f6;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
}

.login-test-link {
    margin-top: 20px;
    text-align: center;
}

.login-test-link a {
    color: #93c5fd;
    font-size: 13px;
    text-decoration: none;
}

.api-status {
    margin: -4px 0 16px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}

.api-status.ok {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
}

.api-status.fail {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
}

.login-card button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .login-card {
        padding: 30px 24px;
    }

    .login-desc {
        margin-bottom: 22px;
    }

    .login-card label {
        margin-bottom: 15px;
    }
}

/* =========================
   Login Custom Alert
========================= */

.login-alert-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 22px;

    background: rgba(2, 6, 23, 0.62);
    backdrop-filter: blur(10px);
}

.login-alert-backdrop.show {
    display: flex;
}

.login-alert {
    width: min(360px, 100%);

    padding: 28px 24px 24px;

    border-radius: 24px;

    background:
        radial-gradient(circle at top left, rgba(239, 68, 68, 0.18), transparent 38%),
        rgba(15, 23, 42, 0.98);

    border: 1px solid rgba(148, 163, 184, 0.22);

    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);

    text-align: center;
}

.login-alert-icon {
    width: 48px;
    height: 48px;

    margin: 0 auto 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.34);
    color: #fecaca;

    font-size: 24px;
    font-weight: 950;
}

.login-alert h2 {
    margin: 0;

    color: #ffffff;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.login-alert p {
    margin: 10px 0 22px;

    color: #cbd5e1;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
    letter-spacing: -0.02em;
}

.login-alert button {
    width: 100%;
    height: 44px;

    border: 0;
    border-radius: 999px;

    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;

    font-size: 14px;
    font-weight: 950;

    cursor: pointer;
}

.login-alert button:hover {
    filter: brightness(1.08);
}