* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --background: #09090b;
    --surface: #111114;
    --surface-light: #18181c;
    --surface-hover: #1e1e23;

    --border: #29292f;
    --border-light: #35353d;

    --text: #f4f4f5;
    --text-secondary: #d4d4d8;
    --text-muted: #92929b;
    --text-dim: #71717a;

    --red: #dc2626;
    --red-hover: #ef4444;
    --red-glow: rgba(220, 38, 38, 0.2);

    --radius-lg: 16px;
}

html {
    background: var(--background);
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            ellipse 100% 40% at 50% 0%,
            rgba(127, 29, 29, 0.18),
            transparent 70%
        ),
        var(--background);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    display: flex;
    justify-content: center;
    align-items: center;

    padding:
        max(24px, env(safe-area-inset-top))
        max(14px, env(safe-area-inset-right))
        max(40px, env(safe-area-inset-bottom))
        max(14px, env(safe-area-inset-left));
}

.login-container {
    position: relative;

    width: 100%;
    max-width: 430px;

    padding: 42px 40px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(24, 24, 28, 0.98),
            rgba(12, 12, 15, 0.98)
        );

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.38),
        0 0 35px rgba(220, 38, 38, 0.06);

    overflow: hidden;
}

/* subtle red glow inside the card */
.login-container::before {
    content: "";
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);

    width: 300px;
    height: 220px;

    background: radial-gradient(
        circle,
        rgba(220, 38, 38, 0.14),
        transparent 70%
    );

    pointer-events: none;
}

.login-container > * {
    position: relative;
    z-index: 1;
}

.login-container h1 {
    margin-bottom: 26px;

    color: #fff;

    font-size: clamp(2rem, 8vw, 2.6rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.04em;

    text-shadow: 0 0 25px rgba(220, 38, 38, 0.2);
}

/* Optional subtitle / text */
.login-container p {
    margin-bottom: 24px;

    color: var(--text-muted);

    font-size: 0.9rem;
    line-height: 1.5;
}

/* If your login page has inputs */
.login-container input {
    width: 100%;

    margin-bottom: 14px;
    padding: 14px 15px;

    background: var(--surface);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 10px;

    font: inherit;
    font-size: 0.95rem;

    outline: none;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.login-container input::placeholder {
    color: var(--text-dim);
}

.login-container input:hover {
    border-color: var(--border-light);
    background: var(--surface-light);
}

.login-container input:focus {
    border-color: rgba(220, 38, 38, 0.7);

    box-shadow:
        0 0 0 3px rgba(220, 38, 38, 0.1),
        0 0 18px rgba(220, 38, 38, 0.08);
}

button {
    width: 100%;

    padding: 14px 18px;

    background: var(--red);
    color: #fff;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;

    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;

    cursor: pointer;

    box-shadow:
        0 6px 20px rgba(220, 38, 38, 0.18);

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

button:hover {
    background: var(--red-hover);

    transform: translateY(-2px);

    box-shadow:
        0 9px 26px rgba(220, 38, 38, 0.28);
}

button:active {
    transform: translateY(0) scale(0.995);
}

button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .login-container {
        max-width: 100%;
        padding: 34px 22px;
    }

    .login-container h1 {
        font-size: 2rem;
    }
}

@media (max-width: 360px) {
    body {
        padding-left: 10px;
        padding-right: 10px;
    }

    .login-container {
        padding: 30px 18px;
    }
}