:root {
    --bg: #0f1013;
    --panel: #ffffff;
    --text: #171717;
    --muted: #6b7280;
    --line: #e5e7eb;
    --accent: #111111;
    --soft: #f4f4f5;
    --error-bg: #fff0f0;
    --error-text: #9f1d1d;
}

* { box-sizing: border-box; }

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

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.13), transparent 34%),
        linear-gradient(135deg, #090a0c, #1f2025);
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 22px;
}

.login-card {
    width: min(100%, 430px);
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 24px 70px rgba(0,0,0,.35);
}

.login-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--accent);
    color: #f5d142;
    display: grid;
    place-items: center;
    font-size: 18px;
    margin-bottom: 28px;
}

.login-header {
    margin-bottom: 28px;
}

.login-header span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.login-header h1 {
    margin: 0 0 8px;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -1.5px;
}

.login-header p {
    margin: 0;
    color: var(--muted);
}

.login-error {
    margin-bottom: 18px;
    padding: 13px 14px;
    border-radius: 12px;
    background: var(--error-bg);
    color: var(--error-text);
    font-size: 14px;
    font-weight: 700;
}

form {
    display: grid;
    gap: 17px;
}

label {
    display: grid;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
    color: var(--text);
    padding: 0 14px;
    font: inherit;
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    background: #fff;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: var(--muted);
    font-weight: 600;
}

.login-remember input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

button {
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

button:hover {
    opacity: .92;
}

@media (max-width: 480px) {
    .login-card {
        padding: 26px;
        border-radius: 20px;
    }

    .login-header h1 {
        font-size: 32px;
    }
}
