* {
    box-sizing: border-box;
}

:root {
    --bg-a: #0f172a;
    --bg-b: #1d4ed8;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --border: #d9e2ec;
    --focus: #3b82f6;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
}

body {
    margin: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 15% 20%, #334155 0, var(--bg-a) 42%),
                linear-gradient(140deg, var(--bg-a), var(--bg-b));
    color: var(--text);
}

.page-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 85% 80%, rgba(59, 130, 246, 0.28), transparent 45%);
    pointer-events: none;
}

.login-shell {
    position: relative;
    width: min(980px, calc(100% - 32px));
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.45);
    background: rgba(255, 255, 255, 0.96);
}

.brand-panel {
    padding: 42px;
    background: linear-gradient(165deg, #1e293b 0%, #1d4ed8 100%);
    color: #e2e8f0;
}

.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.14);
    padding: 7px 12px;
    border-radius: 999px;
}

.brand-panel h1 {
    margin: 18px 0 10px;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.2;
}

.brand-panel p {
    margin: 0 0 20px;
    color: #cbd5e1;
}

.brand-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.brand-panel li {
    position: relative;
    padding-left: 24px;
}

.brand-panel li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #93c5fd;
}

.login-card {
    background: var(--card);
    padding: 42px;
}

.login-card h2 {
    margin: 0;
    font-size: 28px;
}

.subtitle {
    margin: 8px 0 24px;
    color: var(--muted);
}

label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 14px;
}

input:focus {
    outline: none;
    border-color: var(--focus);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background: #fff;
}

.password-field {
    position: relative;
}

.password-field input {
    margin-bottom: 0;
    padding-right: 86px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 8px;
    border: none;
    border-radius: 10px;
    padding: 8px 10px;
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 600;
    cursor: pointer;
}

.submit-button {
    width: 100%;
    margin-top: 14px;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    transition: transform 0.04s ease, background 0.2s;
}

.submit-button:hover {
    background: var(--primary-hover);
}

.submit-button:active {
    transform: translateY(1px);
}

.message {
    margin-top: 14px;
    font-size: 14px;
    min-height: 20px;
    font-weight: 600;
}

.message.error {
    color: #b91c1c;
}

.message.ok {
    color: #047857;
}

@media (max-width: 860px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .brand-panel,
    .login-card {
        padding: 28px;
    }
}
