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

body.vm-login-page {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: #0f172a;
    font-family: Inter, Roboto, Arial, sans-serif;
    background:
        radial-gradient(circle at 10% 12%, rgba(20, 184, 166, .16), transparent 26%),
        linear-gradient(135deg, #f8fafc 0%, #eef2f7 44%, #e8eef5 100%);
    text-align: left;
}

.vm-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(380px, 440px) minmax(0, 1fr);
}

.vm-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: rgba(248, 250, 252, .84);
    backdrop-filter: blur(18px);
}

.vm-login-card {
    width: min(100%, 420px);
    text-align: left;
}

.vm-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 46px;
}

.vm-brand-mark {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, .10);
}

.vm-brand-mark img {
    width: 90px;
    height: 90px;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center 58%;
}

.vm-brand-copy {
    min-width: 0;
}

.vm-brand-copy span {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.vm-brand-copy small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.vm-login-heading {
    margin-bottom: 28px;
}

.vm-login-heading p,
.vm-kicker {
    margin: 0 0 8px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.vm-login-heading h1 {
    margin: 0;
    color: #0f172a;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0;
}

.vm-login-form {
    display: grid;
    gap: 18px;
}

.vm-field {
    display: grid;
    gap: 8px;
}

.vm-field label {
    margin: 0;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
}

.vm-input-wrap {
    position: relative;
}

.vm-input-wrap i {
    position: absolute;
    left: 18px;
    top: 50%;
    z-index: 1;
    color: #64748b;
    font-size: 16px;
    transform: translateY(-50%);
    pointer-events: none;
}

.vm-login-form .form-control {
    height: 54px;
    width: 100%;
    padding: 0 18px 0 48px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.vm-login-form .form-control:focus {
    border-color: #0f766e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .14);
}

.vm-login-form .form-control.input-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .12);
}

.vm-login-form input#captcha {
    padding-left: 18px;
}

.vm-captcha {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 14px;
    align-items: end;
}

.vm-captcha-image {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
}

.vm-captcha-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.vm-icon-btn {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f766e;
    border: 0;
    border-radius: 8px;
    background: #e6fffb;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.vm-icon-btn:hover,
.vm-icon-btn:focus {
    color: #ffffff;
    background: #0f766e;
    transform: translateY(-1px);
}

.vm-submit {
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 6px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #0f766e 0%, #155e75 100%);
    box-shadow: 0 18px 34px rgba(15, 118, 110, .24);
    transition: box-shadow .2s ease, transform .2s ease, filter .2s ease;
}

.vm-submit:hover,
.vm-submit:focus {
    color: #ffffff;
    filter: brightness(1.04);
    box-shadow: 0 22px 42px rgba(15, 118, 110, .30);
    transform: translateY(-1px);
}

.vm-submit i {
    font-size: 13px;
}

.vm-forgot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: #0f766e;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.vm-forgot:hover,
.vm-forgot:focus {
    color: #155e75;
    text-decoration: none;
}

.vm-alert {
    margin: 0 0 18px;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
}

.vm-login-visual {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 56px;
    background-position: center;
    background-size: cover;
    isolation: isolate;
}

.vm-login-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .05) 0%, rgba(15, 23, 42, .62) 100%);
}

.vm-visual-content {
    width: min(100%, 720px);
    color: #ffffff;
    text-align: left;
}

.vm-visual-content .vm-kicker {
    color: #99f6e4;
}

.vm-visual-content h2 {
    margin: 0 0 24px;
    max-width: 720px;
    color: #ffffff;
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}

.vm-notices {
    max-height: 290px;
    display: grid;
    gap: 12px;
    overflow: auto;
    padding-right: 8px;
}

.vm-notice {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: rgba(15, 23, 42, .34);
    backdrop-filter: blur(14px);
}

.vm-notice h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
}

.vm-notice p {
    margin: 0;
    color: rgba(255, 255, 255, .84);
    font-size: 14px;
    line-height: 1.55;
}

.vm-notice a.more {
    color: #99f6e4;
    font-weight: 800;
}

.text-danger {
    margin-top: 2px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
}

.vm-login-page-user .vm-login-heading p,
.vm-login-page-user .vm-forgot {
    color: #0e7490;
}

.vm-login-page-user .vm-login-form .form-control:focus {
    border-color: #0e7490;
    box-shadow: 0 0 0 4px rgba(14, 116, 144, .14);
}

.vm-login-page-user .vm-submit {
    background: linear-gradient(135deg, #0e7490 0%, #0f766e 100%);
    box-shadow: 0 18px 34px rgba(14, 116, 144, .24);
}

.vm-login-page-user .vm-submit:hover,
.vm-login-page-user .vm-submit:focus {
    box-shadow: 0 22px 42px rgba(14, 116, 144, .30);
}

@media (max-width: 991px) {
    .vm-login-shell {
        grid-template-columns: 1fr;
    }

    .vm-login-panel {
        min-height: auto;
        padding: 36px 22px;
    }

    .vm-brand {
        margin-bottom: 34px;
    }

    .vm-login-card {
        width: min(100%, 460px);
    }

    .vm-login-visual {
        min-height: 420px;
        padding: 36px 22px;
    }

    .vm-visual-content h2 {
        font-size: 38px;
    }
}

@media (max-width: 560px) {
    .vm-login-panel {
        padding: 28px 18px;
    }

    .vm-brand-mark {
        width: 64px;
        height: 64px;
    }

    .vm-brand-mark img {
        width: 80px;
        height: 80px;
    }

    .vm-login-heading h1 {
        font-size: 32px;
    }

    .vm-captcha {
        grid-template-columns: 1fr;
    }

    .vm-login-visual {
        padding: 30px 18px;
    }

    .vm-visual-content h2 {
        font-size: 31px;
    }
}
