:root {
    --rgb-red: #e11d48;
    --rgb-red-dark: #be123c;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --field: #f4f8ff;
    --field-border: #cfe0f5;
    --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: "Plus Jakarta Sans", "Overpass", sans-serif;
    color: var(--ink);
    background: #fff;
}

.login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 46%) 1fr;
}

.login-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 8vw 40px;
    background: #fff;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 42px;
    text-decoration: none;
    color: inherit;
}

.login-pixels {
    display: grid;
    grid-template-columns: repeat(2, 7px);
    grid-template-rows: repeat(4, 7px);
    gap: 2px;
}

.login-pixels span { display: block; border-radius: 1px; }
.login-pixels span:nth-child(1) { background: #f97316; }
.login-pixels span:nth-child(2) { background: #9ca3af; }
.login-pixels span:nth-child(3) { background: #22c55e; }
.login-pixels span:nth-child(4) { background: #cbd5e1; }
.login-pixels span:nth-child(5) { background: #7c3aed; }
.login-pixels span:nth-child(6) { background: #94a3b8; }
.login-pixels span:nth-child(7) { background: #06b6d4; }
.login-pixels span:nth-child(8) { background: #e5e7eb; }

.login-brand strong {
    font-size: 22px;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.login-brand em {
    font-style: normal;
    font-weight: 400;
    color: var(--muted);
    margin-left: 4px;
    font-size: 15px;
}

.login-form h1 {
    margin: 0 0 8px;
    font-size: 34px;
    letter-spacing: -0.045em;
    font-weight: 800;
    line-height: 1.15;
}

.login-form h1 span { color: var(--rgb-red); }

.login-form .lead {
    margin: 0 0 32px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.field { margin-bottom: 18px; }

.field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.field input[type="email"],
.field input[type="password"],
.field input[type="text"] {
    width: 100%;
    height: 52px;
    border: 1.5px solid var(--field-border);
    background: var(--field);
    border-radius: 10px;
    padding: 0 16px;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.field input:focus {
    border-color: #93c5fd;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 26px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
}

.toggle input { position: absolute; opacity: 0; pointer-events: none; }

.toggle i {
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #d1d5db;
    position: relative;
    transition: background .2s;
    flex-shrink: 0;
}

.toggle i::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
    transition: transform .2s;
}

.toggle input:checked + i { background: #3b82f6; }
.toggle input:checked + i::after { transform: translateX(16px); }

.btn-login {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 10px;
    background: var(--rgb-red);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
}

.btn-login:hover {
    background: var(--rgb-red-dark);
    box-shadow: 0 10px 24px rgba(225, 29, 72, 0.28);
}

.btn-login:active { transform: translateY(1px); }

.alert {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.login-foot {
    margin-top: auto;
    padding-top: 40px;
    font-size: 12px;
    color: #9ca3af;
}

.login-art {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 500px at 90% 0%, #fbcfe8 0%, transparent 55%),
        radial-gradient(800px 500px at 10% 100%, #bfdbfe 0%, transparent 50%),
        linear-gradient(160deg, #dbeafe 0%, #ede9fe 55%, #fce7f3 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
}

.login-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 75%);
    pointer-events: none;
}

.art-inner {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    text-align: center;
}

.art-logo {
    width: min(280px, 70%);
    height: auto;
    margin: 0 auto 18px;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.12));
}

.art-kicker {
    margin: 0 0 28px;
    font-size: 22px;
    font-weight: 700;
    color: #334155;
    letter-spacing: -0.03em;
}

.preview {
    background: #0f172a;
    border-radius: 22px;
    padding: 14px 14px 18px;
    box-shadow:
        0 30px 60px rgba(15, 23, 42, 0.22),
        0 0 0 1px rgba(255,255,255,.2);
    text-align: left;
    transform: perspective(1200px) rotateX(6deg);
}

.preview-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.preview-bar b {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: block;
}

.preview-bar b:nth-child(1) { background: #fb7185; }
.preview-bar b:nth-child(2) { background: #fbbf24; }
.preview-bar b:nth-child(3) { background: #34d399; }

.preview-screen {
    background: linear-gradient(180deg, #1e293b, #0f172a);
    border-radius: 14px;
    padding: 16px;
    min-height: 250px;
}

.preview-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

.preview-top span { color: #94a3b8; font-weight: 500; }

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.stat {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 12px;
    color: #fff;
}

.stat small {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    margin-bottom: 4px;
}

.stat strong { font-size: 22px; letter-spacing: -0.04em; }

.row-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.row-list div {
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: .55;
    pointer-events: none;
}

.blob-a { width: 180px; height: 180px; background: #fb7185; top: 8%; right: 8%; }
.blob-b { width: 220px; height: 220px; background: #60a5fa; bottom: 6%; left: 6%; }

@media (max-width: 900px) {
    .login { grid-template-columns: 1fr; }
    .login-art { display: none; }
    .login-form { padding: 40px 24px; min-height: 100vh; }
    .login-form h1 { font-size: 28px; }
}
