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

body.plateau-login {
    min-height: 100vh;
    overflow-x: hidden;
    color: #27312c;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background-color: #26353f;
    background-image:
        linear-gradient(90deg, rgba(247, 244, 236, 0.04) 0%, rgba(23, 35, 43, 0.02) 52%, rgba(18, 30, 39, 0.18) 100%),
        url("../img/login/login-plateau-bg-v1.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.plateau-login * {
    box-sizing: border-box;
}

.login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(460px, 1.1fr) minmax(460px, 0.9fr);
    align-items: center;
    width: min(1480px, calc(100% - 8vw));
    min-height: 100vh;
    margin: 0 auto;
    padding: 48px 0;
}

.brand-panel {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 4vh 7vw 6vh 4vw;
}

.brand-panel::before,
.brand-panel::after {
    position: absolute;
    content: "";
    pointer-events: none;
    border: 1px solid rgba(83, 98, 71, 0.11);
    border-radius: 50%;
}

.brand-panel::before {
    left: -8vw;
    top: 8vh;
    width: 540px;
    height: 540px;
}

.brand-panel::after {
    left: -3vw;
    top: 13vh;
    width: 440px;
    height: 440px;
}

.brand-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    transform: translateY(-7vh);
}

.brand-mark {
    display: block;
    width: 142px;
    height: 78px;
    margin-bottom: 20px;
}

.brand-title {
    margin: 0;
    color: #43523f;
    font-size: clamp(44px, 4.2vw, 68px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0.18em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.brand-subtitle {
    margin: 18px 0 0;
    color: #4e5d50;
    font-size: clamp(17px, 1.45vw, 24px);
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.16em;
}

.brand-divider {
    width: 38px;
    height: 2px;
    margin: 24px 0 20px 178px;
    border-radius: 2px;
    background: #b89045;
}

.brand-slogan {
    margin: 0;
    color: #58645a;
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.12em;
}

.brand-slogan .dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 13px 3px;
    border-radius: 50%;
    background: #b89045;
}

.login-side {
    display: flex;
    justify-content: flex-end;
    padding-right: 2vw;
}

.login-card {
    width: 100%;
    max-width: 470px;
    margin: 0;
    padding: 48px 46px 36px;
    color: #27312c;
    border: 1px solid rgba(210, 189, 151, 0.78);
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.97);
    box-shadow: 0 28px 70px rgba(17, 30, 39, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mobile-brand {
    display: none;
}

.login-heading {
    margin: 0;
    color: #27312c;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    letter-spacing: 0.08em;
}

.login-subheading {
    margin: 8px 0 32px;
    color: #8a8d87;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.field-wrap {
    position: relative;
    margin-bottom: 22px;
}

.field-icon {
    position: absolute;
    z-index: 2;
    left: 17px;
    top: 50%;
    width: 18px;
    color: #90958e;
    font-size: 17px;
    line-height: 18px;
    text-align: center;
    transform: translateY(-50%);
    transition: color 0.2s ease;
}

.plateau-login .form-control {
    width: 100%;
    height: 54px !important;
    margin: 0 !important;
    padding: 10px 44px 10px 48px !important;
    color: #27312c;
    font-size: 14px;
    border: 1px solid #ddd9d0;
    border-radius: 9px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    box-shadow: none !important;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.plateau-login .form-control::placeholder {
    color: #a4a6a1;
}

.plateau-login .form-control:focus {
    border-color: #718067 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(83, 98, 71, 0.09) !important;
}

.field-wrap:focus-within .field-icon {
    color: #536247;
}

.captcha-field .form-control {
    padding-right: 132px !important;
}

.captcha-link {
    position: absolute;
    z-index: 3;
    top: 7px;
    right: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 40px;
    overflow: hidden;
    border-left: 1px solid #e4e0d7;
    border-radius: 0 7px 7px 0;
    background: #f4f2eb;
}

.captcha-link .imgcode {
    display: block;
    width: 100%;
    height: 40px;
    object-fit: cover;
    cursor: pointer;
}

.field-wrap label.error {
    position: absolute !important;
    left: 4px;
    bottom: -18px;
    margin: 0;
    color: #a6655d;
    font-size: 11px;
    font-weight: 400;
}

.remember-row {
    display: flex;
    align-items: center;
    min-height: 24px;
    margin: 2px 0 20px;
}

.remember-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
    color: #606760;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    user-select: none;
}

.remember-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.remember-check .check-shape {
    position: relative;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 1px solid #c9c8c1;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s ease;
}

.remember-check input:checked + .check-shape {
    border-color: #536247;
    background: #536247;
}

.remember-check input:checked + .check-shape::after {
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    content: "";
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.login-button.btn {
    width: 100%;
    height: 54px;
    margin: 0;
    padding: 0 20px;
    color: #fffdf8;
    font-size: 16px;
    font-weight: 600;
    line-height: 54px;
    text-align: center;
    letter-spacing: 0.22em;
    border: 0;
    border-radius: 8px;
    background: #536247;
    box-shadow: 0 10px 24px rgba(68, 82, 61, 0.18);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.login-button.btn:hover,
.login-button.btn:focus {
    color: #fff;
    background: #44523d;
    box-shadow: 0 12px 28px rgba(68, 82, 61, 0.24);
    outline: none;
}

.login-button.btn:active {
    transform: translateY(1px);
}

.support-text {
    margin: 34px 0 0;
    color: #9a9b96;
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
    letter-spacing: 0.04em;
}

body .layer-ext-moon-msg[type="dialog"] {
    min-width: 100px !important;
}

body .layer-ext-moon-msg {
    color: #fff;
    border: 0;
    background-color: rgba(39, 49, 44, 0.92);
}

body .layer-ext-moon-msg .layui-layer-content {
    padding: 12px 25px;
    text-align: center;
}

@media (max-width: 1100px) {
    .login-shell {
        grid-template-columns: minmax(360px, 0.9fr) minmax(430px, 1.1fr);
        width: calc(100% - 48px);
    }

    .brand-panel {
        padding-left: 2vw;
    }

    .brand-title {
        font-size: 48px;
    }

    .brand-subtitle {
        font-size: 17px;
    }
}

@media (max-width: 860px) {
    body.plateau-login {
        background-position: 42% center;
    }

    body.plateau-login::before {
        position: fixed;
        inset: 0;
        content: "";
        background: rgba(26, 39, 45, 0.32);
    }

    .login-shell {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 28px 20px;
    }

    .brand-panel {
        display: none;
    }

    .login-side {
        position: relative;
        z-index: 2;
        width: 100%;
        justify-content: center;
        padding: 0;
    }

    .mobile-brand {
        display: block;
        margin-bottom: 24px;
        color: #536247;
        font-size: 24px;
        font-weight: 700;
        text-align: center;
        letter-spacing: 0.14em;
    }
}

@media (max-width: 520px) {
    .login-shell {
        align-items: center;
        padding: 18px 14px;
    }

    .login-card {
        max-width: 420px;
        padding: 30px 22px 24px;
        border-radius: 18px;
    }

    .mobile-brand {
        margin-bottom: 17px;
        font-size: 21px;
    }

    .login-heading {
        font-size: 25px;
    }

    .login-subheading {
        margin-bottom: 24px;
    }

    .support-text {
        margin-top: 24px;
    }
}

@media (max-height: 690px) and (min-width: 861px) {
    .login-shell {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .login-card {
        padding-top: 32px;
        padding-bottom: 24px;
    }

    .login-subheading {
        margin-bottom: 24px;
    }

    .field-wrap {
        margin-bottom: 17px;
    }

    .support-text {
        margin-top: 22px;
    }
}
