/* Login layout แบบใหม่ — prefix lm- */

body.lm-body {
    overflow: hidden;
}

.lm-wrap {
    display: flex;
    height: 100vh;
    width: 100%;
}

.lm-left {
    flex: 0 0 65%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: none;
}

.lm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.40) 55%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    padding: 48px 56px;
    color: #ffffff;
}

.lm-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lm-logo {
    max-height: 56px;
    max-width: 140px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    padding: 6px 12px;
    box-shadow: 0 2px 8px rgba(30, 60, 120, 0.08);
}

.lm-brand-tag {
    font-size: 13px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
}

.lm-hero {
    margin-top: auto;
    margin-bottom: auto;
}

.lm-hero-accent {
    display: none;
}

.lm-hero-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 14px;
    color: #ffffff;
}

.lm-hero-sub {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 460px;
    line-height: 1.6;
    margin-bottom: 36px;
}

.lm-modules {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.lm-mod {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    width: 96px;
    font-size: 11px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lm-mod i {
    display: block;
    font-size: 22px;
    margin-bottom: 8px;
    color: #ffffff;
}

.lm-foot {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    border-left: 3px solid #2f7de1;
    padding-left: 14px;
}

.lm-foot small {
    display: block;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.lm-right {
    flex: 1;
    background-color: #f4f8fd;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 24px;
    overflow-y: auto;
}

.lm-lang {
    position: absolute;
    top: 18px;
    right: 24px;
}

.lm-lang {
    color: #5a6a7d;
    font-size: 14px;
}

.lm-lang a {
    color: #7a8699;
    cursor: pointer;
    margin-left: 6px;
}

.lm-lang a.lm-lang-active {
    color: #2f7de1;
    font-weight: 600;
}

.lm-lang-sep {
    margin: 0 4px 0 10px;
    color: #c3ccd8;
}

.lm-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(30, 60, 120, 0.10);
    padding: 40px 44px;
    width: 100%;
    max-width: 460px;
}

.lm-welcome {
    color: #7a8699;
    font-size: 14px;
    margin-bottom: 10px;
}

.lm-card-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
}

.lm-card-logo {
    max-height: 52px;
    max-width: 160px;
    object-fit: contain;
}

.lm-card-tag {
    font-size: 12px;
    color: #7a8699;
    margin-top: 4px;
}

.lm-form-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2d3d;
    margin: 0 0 4px;
}

.lm-form-sub {
    color: #7a8699;
    font-size: 13px;
    margin-bottom: 26px;
}

.lm-card .form-control {
    height: 46px;
    border-radius: 10px;
    border: 1px solid #dde5ef;
    box-shadow: none;
    padding-left: 14px;
}

.lm-card .form-control:focus {
    border-color: #2f7de1;
    box-shadow: 0 0 0 3px rgba(47, 125, 225, 0.12);
}

.lm-card .form-control-feedback {
    height: 46px;
    line-height: 46px;
    color: #9aa7b8;
}

.lm-forgot {
    color: #2f7de1;
    font-size: 13px;
    cursor: pointer;
}

.lm-btn {
    display: block;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: #2f7de1;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
}

.lm-btn:hover, .lm-btn:focus {
    background: #2569c4;
    color: #ffffff;
}

.lm-copy {
    text-align: center;
    color: #9aa7b8;
    font-size: 11px;
    margin-top: 28px;
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .lm-left {
        display: block;
    }
}

@media (max-width: 991px) {
    .lm-wrap {
        display: block;
    }

    .lm-right {
        min-height: 100vh;
    }
}
