:root {
    --wm-login-primary: #1f5d96;
    --wm-login-primary-dark: #153f67;
    --wm-login-card: rgba(255, 255, 255, 0.9);
    --wm-login-line: #d8e7f7;
    --wm-login-text: #163c5f;
    --wm-login-muted: #607b97;
}

* {
    box-sizing: border-box;
}

body.wm-login-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 16% 12%, rgba(147, 213, 255, 0.22), transparent 28%),
        radial-gradient(circle at 86% 88%, rgba(106, 183, 236, 0.18), transparent 30%),
        linear-gradient(118deg, rgba(13, 55, 90, 0.66), rgba(16, 45, 72, 0.72)),
        url('/images/auth/workflow-login-bg.svg') center / cover no-repeat fixed;
    color: #f5fbff;
    display: grid;
    place-items: center;
    padding: 24px;
}

.wm-login-shell {
    width: min(460px, 100%);
    border-radius: 26px;
    overflow: visible;
    display: block;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.wm-login-aside {
    display: none;
}

.wm-login-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.wm-login-brand i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.wm-login-brand strong {
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.wm-login-title {
    font-size: clamp(1.6rem, 3.2vw, 2.15rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px;
}

.wm-login-sub {
    margin: 0;
    color: rgba(232, 244, 255, 0.9);
    max-width: 46ch;
    line-height: 1.55;
}

.wm-login-points {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: grid;
    gap: 12px;
}

.wm-login-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e8f5ff;
    font-size: 0.95rem;
}

.wm-login-points i {
    color: #82d0ff;
}

.wm-login-panel {
    background: var(--wm-login-card);
    color: var(--wm-login-text);
    padding: 44px 38px;
    border-radius: 24px;
    border: 1px solid rgba(214, 233, 250, 0.9);
    box-shadow: 0 24px 54px rgba(6, 31, 53, 0.36);
    backdrop-filter: blur(4px);
}

.wm-login-card-head h1 {
    font-size: 1.52rem;
    margin: 0;
    font-weight: 700;
    color: var(--wm-login-primary-dark);
}

.wm-login-card-head p {
    margin: 8px 0 0;
    color: var(--wm-login-muted);
}

.wm-login-form {
    margin-top: 26px;
}

.wm-login-form .form-label {
    font-weight: 600;
    color: #255179;
    margin-bottom: 0.45rem;
}

.wm-login-form .form-control {
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--wm-login-line);
    padding: 0 14px;
    color: var(--wm-login-text);
    transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.wm-login-form .form-control:focus {
    border-color: #8db9df;
    box-shadow: 0 0 0 0.22rem rgba(63, 132, 194, 0.14);
}

.wm-password-wrap {
    position: relative;
}

.wm-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #4f7191;
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.wm-password-toggle:hover {
    background: #eef6ff;
    color: #1f5d96;
}

.wm-login-form .form-check {
    margin: 2px 0 18px;
}

.wm-login-form .form-check-label {
    color: #506d89;
    user-select: none;
}

.wm-login-submit {
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #2f78b8, #205f98);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 22px rgba(32, 95, 152, 0.28);
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.wm-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(32, 95, 152, 0.32);
}

.wm-login-error {
    margin-top: 14px;
    border-radius: 12px;
}

@media (max-width: 991.98px) {
    body.wm-login-body {
        padding: 14px;
        background-attachment: scroll;
    }

    .wm-login-shell {
        border-radius: 18px;
        width: min(460px, 100%);
    }

    .wm-login-panel {
        padding: 26px 22px 30px;
        border-radius: 18px;
    }
}
