:root {
    --blue: #2f80ed;
    --blue-dark: #0b4fb3;
    --red: #e43145;
    --text: #ffffff;
    --panel: rgba(28, 31, 37, .94);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #17191d;
}

button, input { font: inherit; }

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 480px;
    overflow: hidden;
}

.login-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 255, 255, .28), transparent 9rem),
        linear-gradient(115deg, rgba(38, 50, 66, .26), rgba(26, 40, 59, .12)),
        linear-gradient(140deg, #a8b5bf 0%, #8d8376 44%, #435166 100%);
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .46);
    z-index: 1;
}

.visual-scene {
    position: absolute;
    inset: 0;
    filter: blur(1.2px);
    opacity: .85;
}

.report-page {
    position: absolute;
    left: 14%;
    top: 28%;
    width: 28rem;
    height: 20rem;
    transform: rotate(-13deg) skewX(-3deg);
    background: linear-gradient(145deg, #f7f9fd, #cfd8e5);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .34);
}

.report-page span {
    position: absolute;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 16px solid #2f80ed;
}

.report-page span:nth-child(1) { left: 34px; top: 42px; border-color: #2f80ed #24a148 #f2b705 #e43145; }
.report-page span:nth-child(2) { right: 48px; top: 46px; border-color: #24a148 #2f80ed #e43145 #f2b705; }
.report-page span:nth-child(3) { left: 52px; bottom: 44px; border-color: #e43145 #f2b705 #2f80ed #24a148; }

.report-page i {
    position: absolute;
    right: 44px;
    bottom: 54px;
    width: 170px;
    height: 110px;
    background:
        linear-gradient(90deg, #2f80ed 0 14%, transparent 14% 20%, #24a148 20% 36%, transparent 36% 44%, #f2b705 44% 62%, transparent 62% 70%, #e43145 70% 88%, transparent 88%),
        linear-gradient(#aab7c7 0 2px, transparent 2px 27px);
    background-size: auto, 100% 27px;
}

.monitor {
    position: absolute;
    right: 21%;
    background: linear-gradient(160deg, #e9eef7, #aeb8c5);
    border: 18px solid #1c2430;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

.monitor-one {
    width: 36rem;
    height: 19rem;
    bottom: 13%;
}

.monitor-two {
    width: 26rem;
    height: 18rem;
    top: 6%;
}

.monitor b {
    position: absolute;
    left: 10%;
    right: 10%;
    height: 18px;
    background: linear-gradient(90deg, #2f80ed, #24a148, #f2b705, #e43145);
}

.monitor b:nth-child(1) { top: 20%; }
.monitor b:nth-child(2) { top: 36%; width: 62%; }
.monitor b:nth-child(3) { top: 54%; width: 78%; }
.monitor b:nth-child(4) { top: 72%; width: 48%; }

.pen-hand {
    position: absolute;
    right: 3%;
    top: 0;
    width: 24rem;
    height: 34rem;
    border-radius: 0 0 45% 45%;
    background: radial-gradient(circle at 60% 24%, rgba(240, 194, 155, .72), rgba(105, 63, 48, .5) 34%, transparent 35%);
}

.running-copy {
    position: absolute;
    left: 5.2%;
    right: 6%;
    top: 49%;
    z-index: 2;
}

.running-copy h1 {
    margin: 0;
    min-height: 64px;
    font-size: clamp(30px, 3.1vw, 54px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0;
}

.running-copy i {
    display: inline-block;
    width: 3px;
    height: .88em;
    margin-left: 6px;
    background: #ffffff;
    vertical-align: -4px;
    animation: blink 1s steps(1) infinite;
}

.login-panel {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 42px;
    background:
        radial-gradient(circle at 100% 6%, rgba(255,255,255,.08), transparent 13rem),
        linear-gradient(155deg, rgba(40, 43, 50, .97), rgba(24, 26, 31, .98));
    box-shadow: -24px 0 70px rgba(0, 0, 0, .28);
}

.login-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 0 35%, rgba(255,255,255,.04) 35% 36%, transparent 36%),
        linear-gradient(35deg, transparent 0 66%, rgba(255,255,255,.035) 66% 67%, transparent 67%);
    pointer-events: none;
}

.login-card {
    position: relative;
    z-index: 1;
    width: min(100%, 340px);
}

.login-logo {
    position: relative;
    margin-bottom: 32px;
    text-align: right;
    font-weight: 900;
    line-height: .9;
}

.login-logo span {
    display: block;
    font-size: 62px;
    letter-spacing: -2px;
}

.login-logo strong {
    display: block;
    color: #62b0ff;
    font-size: 42px;
    letter-spacing: 1px;
}

.login-logo i {
    position: absolute;
    right: 150px;
    bottom: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff1f2f;
}

.login-card label {
    display: block;
    margin-bottom: 18px;
    font-weight: 700;
}

.login-card label > span:first-child {
    display: block;
    margin-bottom: 9px;
}

.login-card input[type="text"],
.login-card input[type="password"] {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 0;
    padding: 0 14px;
    color: #172033;
    background: #e8edf7;
    outline: 2px solid transparent;
}

.login-card input:focus {
    outline-color: rgba(98, 176, 255, .68);
}

.password-field {
    position: relative;
    display: block;
}

.password-field input { padding-right: 48px; }

.password-field button {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    color: #a8b0be;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.password-field svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.remember {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    margin-bottom: 22px !important;
}

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

.remember span {
    margin: 0 !important;
}

.login-submit {
    width: 100%;
    height: 48px;
    border: 0;
    color: white;
    background: linear-gradient(120deg, #d82f4b, #e43d54);
    font-weight: 800;
    cursor: pointer;
}

.login-submit:hover {
    background: linear-gradient(120deg, #c92742, #dd334d);
}

.login-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    color: #ffdbe0;
    background: rgba(228, 61, 84, .18);
    border: 1px solid rgba(228, 61, 84, .42);
}

@keyframes blink {
    50% { opacity: 0; }
}

@media (max-width: 960px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-visual { min-height: 45vh; }
    .login-panel { min-height: 55vh; }
    .running-copy { top: 42%; }
}

@media (max-width: 560px) {
    .login-panel { padding: 30px 24px; }
    .login-logo { text-align: left; }
    .login-logo span { font-size: 48px; }
    .login-logo strong { font-size: 34px; }
    .login-logo i { left: 96px; right: auto; }
    .running-copy h1 { font-size: 30px; }
}
