* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    background:
        radial-gradient(
            circle at 20% 15%,
            rgba(70, 110, 255, .18),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(24, 180, 140, .10),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #080c12,
            #111824
        );
    color: #f7f9fc;
}

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

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 36px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    background:
        linear-gradient(
            160deg,
            rgba(27,35,49,.98),
            rgba(17,23,33,.98)
        );
    box-shadow:
        0 40px 100px rgba(0,0,0,.48),
        inset 0 1px 0 rgba(255,255,255,.03);
}

.login-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.login-icon {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background:
        linear-gradient(
            145deg,
            #edf2ff,
            #dce6ff
        );
    color: #16213a;
    box-shadow:
        0 10px 30px rgba(0,0,0,.18);
}

.login-header h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -.5px;
}

.login-header p {
    margin: 6px 0 0;
    color: #8e9aac;
    font-size: 14px;
}

.login-error {
    margin-bottom: 22px;
    padding: 13px 15px;
    border: 1px solid rgba(255,91,91,.24);
    border-radius: 12px;
    background: rgba(210,50,50,.10);
    color: #ffc3c3;
    font-size: 14px;
    line-height: 1.4;
}

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

label {
    display: grid;
    gap: 8px;
}

label span {
    color: #b9c3d0;
    font-size: 13px;
    font-weight: 600;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    outline: none;
    background: rgba(8,13,20,.65);
    color: #fff;
    font-size: 16px;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #7898ff;
    background: rgba(8,13,20,.90);
    box-shadow:
        0 0 0 4px rgba(93,126,255,.12);
}

button {
    width: 100%;
    height: 52px;
    margin-top: 4px;
    border: 0;
    border-radius: 12px;
    background:
        linear-gradient(
            135deg,
            #eef3ff,
            #dce6ff
        );
    color: #101827;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
    box-shadow:
        0 10px 30px rgba(0,0,0,.18);
    transition:
        transform .15s ease,
        filter .15s ease;
}

button:hover {
    filter: brightness(.97);
}

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

.login-footer {
    margin-top: 27px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    color: #748094;
    font-size: 12px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #50d69b;
    box-shadow:
        0 0 0 3px rgba(80,214,155,.10);
}

@media (max-width: 520px) {
    .login-shell {
        padding: 16px;
    }

    .login-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

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