@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #06111f;
    --panel: #091827;
    --panel-light: #0d2033;
    --primary: #10a0e9;
    --primary-2: #2462e7;
    --text: #f4f8fc;
    --muted: #8ea2b8;
    --border: rgba(255,255,255,0.09);
    --danger: #ff5f6d;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 20%, rgba(16,160,233,.14), transparent 32%),
        radial-gradient(circle at 85% 75%, rgba(36,98,231,.16), transparent 34%),
        var(--bg);
    color: var(--text);
    overflow-x: hidden;
}


/* BACKGROUND */

.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);

    background-size: 45px 45px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 90%
    );
}

.ambient {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .22;
    pointer-events: none;
}

.ambient-one {
    background: var(--primary);
    top: -220px;
    left: -150px;
}

.ambient-two {
    background: var(--primary-2);
    right: -180px;
    bottom: -180px;
}


/* MAIN */

.login-shell {
    width: min(1180px, calc(100% - 40px));
    min-height: 720px;
    margin: 40px auto;

    display: grid;
    grid-template-columns: 1.05fr .95fr;

    background: rgba(7, 22, 36, .78);

    border: 1px solid var(--border);

    border-radius: 30px;

    overflow: hidden;

    box-shadow:
        0 40px 100px rgba(0,0,0,.42),
        inset 0 1px 0 rgba(255,255,255,.04);

    backdrop-filter: blur(20px);
}


/* LEFT PANEL */

.brand-panel {
    position: relative;
    padding: 52px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background:
        linear-gradient(
            145deg,
            rgba(16,160,233,.08),
            transparent 55%
        );
}

.brand-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 48px;
    height: 48px;

    border-radius: 14px;

    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;

    padding: 11px;

    background:
        linear-gradient(
            145deg,
            var(--primary),
            var(--primary-2)
        );

    box-shadow:
        0 10px 30px rgba(16,160,233,.25);
}

.brand-mark span {
    width: 5px;
    border-radius: 4px;
    background: white;
}

.brand-mark span:nth-child(1) {
    height: 42%;
}

.brand-mark span:nth-child(2) {
    height: 70%;
}

.brand-mark span:nth-child(3) {
    height: 100%;
}

.brand-name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.brand-subtitle {
    margin-top: 2px;
    font-size: 8px;
    color: var(--muted);
    letter-spacing: 1.6px;
}


.brand-content {
    max-width: 530px;
}

.eyebrow,
.section-label {
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.brand-content h1 {
    margin: 18px 0 18px;

    font-size: clamp(40px, 4vw, 64px);
    line-height: 1.02;
    letter-spacing: -2.5px;
}

.brand-content h1 strong {
    display: block;

    background:
        linear-gradient(
            90deg,
            #fff,
            #72d5ff
        );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-content p {
    max-width: 470px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.8;
}


/* MONITOR */

.monitor-card {
    margin-top: 45px;

    max-width: 440px;

    padding: 20px;

    border: 1px solid rgba(16,160,233,.16);

    border-radius: 18px;

    background: rgba(255,255,255,.025);
}

.monitor-header,
.monitor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--muted);
}

.live-dot {
    color: #52df9b;
}

.monitor-line {
    height: 80px;
    margin: 18px 0;

    display: flex;
    align-items: center;
    gap: 5px;

    overflow: hidden;
}

.monitor-line span {
    width: 7px;
    height: 20px;

    border-radius: 8px;

    background: linear-gradient(
        to top,
        var(--primary-2),
        var(--primary)
    );

    opacity: .55;

    animation: bars 1.3s ease-in-out infinite alternate;
}

.monitor-line span:nth-child(1) { height: 35px; }
.monitor-line span:nth-child(2) { height: 55px; animation-delay: .1s; }
.monitor-line span:nth-child(3) { height: 28px; animation-delay: .2s; }
.monitor-line span:nth-child(4) { height: 65px; animation-delay: .3s; }
.monitor-line span:nth-child(5) { height: 45px; animation-delay: .4s; }

@keyframes bars {
    from { transform: scaleY(.65); }
    to { transform: scaleY(1.15); }
}

.brand-footer {
    display: flex;
    gap: 22px;

    font-size: 8px;
    color: #61768c;

    letter-spacing: 1px;
}


/* LOGIN */

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.025),
            rgba(255,255,255,.01)
        );
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.mobile-logo {
    display: none;
}

.login-heading {
    margin-bottom: 32px;
}

.login-heading h2 {
    margin: 9px 0 8px;

    font-size: 34px;
    letter-spacing: -1.2px;
}

.login-heading p {
    margin: 0;

    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}


/* FORM */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;

    margin-bottom: 9px;

    color: #9eb2c6;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 17px;
    top: 50%;

    transform: translateY(-50%);

    color: #668096;

    font-weight: 700;
}

.input-wrap input {
    width: 100%;
    height: 57px;

    padding: 0 55px 0 48px;

    color: white;

    border: 1px solid rgba(255,255,255,.09);

    border-radius: 13px;

    outline: none;

    background: rgba(255,255,255,.035);

    font-family: inherit;
    font-size: 13px;

    transition: .2s ease;
}

.input-wrap input::placeholder {
    color: #53687c;
}

.input-wrap input:focus {
    border-color: rgba(16,160,233,.65);

    background: rgba(16,160,233,.045);

    box-shadow:
        0 0 0 4px rgba(16,160,233,.08);
}

.password-toggle {
    position: absolute;

    right: 13px;
    top: 50%;

    transform: translateY(-50%);

    border: 0;
    background: transparent;

    color: var(--primary);

    font-family: inherit;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1px;

    cursor: pointer;
}


/* BUTTON */

.login-button {
    width: 100%;
    height: 58px;

    margin-top: 8px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 19px 0 22px;

    border: 0;
    border-radius: 13px;

    color: white;

    background:
        linear-gradient(
            100deg,
            var(--primary-2),
            var(--primary)
        );

    font-family: inherit;
    font-size: 12px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 15px 30px rgba(16,160,233,.16);

    transition: .2s ease;
}

.login-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 18px 35px rgba(16,160,233,.27);
}

.arrow {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: rgba(255,255,255,.16);

    font-size: 18px;
}


/* SECURITY */

.security-note {
    margin-top: 24px;

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 14px;

    border: 1px solid rgba(255,255,255,.055);
    border-radius: 12px;

    background: rgba(255,255,255,.018);
}

.shield {
    width: 29px;
    height: 29px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: rgba(82,223,155,.1);

    color: #52df9b;

    font-size: 12px;
}

.security-note strong {
    display: block;

    font-size: 10px;
}

.security-note small {
    display: block;

    margin-top: 3px;

    color: #62788d;

    font-size: 9px;
}


/* ALERT */

.alert {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 20px;

    padding: 12px 14px;

    border-radius: 10px;

    font-size: 11px;
}

.alert-error {
    border: 1px solid rgba(255,95,109,.2);

    background: rgba(255,95,109,.07);

    color: #ff9ba4;
}

.alert span {
    width: 20px;
    height: 20px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(255,95,109,.15);
}


/* BOTTOM */

.login-bottom {
    margin-top: 32px;

    display: flex;
    justify-content: space-between;

    color: #50667b;

    font-size: 8px;
    letter-spacing: 1px;
}

.version {
    color: #6d8297;
}


/* MOBILE */

@media (max-width: 850px) {

    .login-shell {
        grid-template-columns: 1fr;

        width: min(600px, calc(100% - 24px));

        min-height: auto;

        margin: 12px auto;

        border-radius: 24px;
    }

    .brand-panel {
        display: none;
    }

    .login-panel {
        padding: 38px 25px;
    }

    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 12px;

        margin-bottom: 55px;
    }

    .brand-mark.small {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .login-heading h2 {
        font-size: 30px;
    }
}

@media (max-width: 420px) {

    .login-panel {
        padding: 30px 18px;
    }

    .login-card {
        max-width: 100%;
    }

    .login-heading {
        margin-bottom: 27px;
    }
}