:root {
    color-scheme: light;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bg: #eef3ff;
    --surface: rgba(255, 255, 255, 0.95);
    --text: #0f172a;
    --muted: #475569;
    --primary: #4f46e5;
    --accent: #2563eb;
    --danger: #ef4444;
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.14), transparent 18%),
                radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.12), transparent 24%),
                linear-gradient(180deg, #f8fbff 0%, #eef3ff 100%);
    color: var(--text);
}

.login-page {
    width: min(360px, 100%);
    max-width: 360px;
    padding: 0;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
}

.login-card form {
    width: 100%;
    max-width: 360px;
}

.login-card h1 {
    margin: 0 0 10px;
    font-size: 1.8rem;
}

.login-card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.5;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.8);
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 0.98rem;
    color: var(--text);
    background: #ffffff;
}

button {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), #3538d5);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

button:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.login-message {
    margin-bottom: 14px;
    min-height: 22px;
    color: var(--danger);
    font-weight: 600;
    display: none;
}

@media (max-width: 480px), (max-height: 780px) {
    body {
        align-items: center;
        padding: 8px;
        overflow: hidden;
    }

    .login-card {
        padding: 18px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .login-card h1 {
        font-size: 1.5rem;
    }

    .login-card p {
        margin-bottom: 18px;
    }

    input,
    button {
        padding: 12px;
        font-size: 0.95rem;
    }

    .login-page {
        width: 100%;
    }
}

.login-info {
    margin-top: 18px;
    color: var(--muted);
    text-align: center;
}

.login-info a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.login-info a:hover {
    text-decoration: underline;
}