html {
    min-height: 100%;
}

body.signin {
    min-height: 100vh;
    margin: 0;
    padding: 28px 24px 20px;
    color: #f6ead1;
    background:
        radial-gradient(circle at 14% 18%, rgba(189, 145, 66, 0.2), transparent 24%),
        radial-gradient(circle at 88% 14%, rgba(90, 128, 255, 0.14), transparent 20%),
        radial-gradient(circle at 50% 100%, rgba(214, 164, 72, 0.15), transparent 30%),
        linear-gradient(135deg, #050506 0%, #0d0d10 34%, #111319 62%, #17120d 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-x: hidden;
    position: relative;
}

body.signin:before,
body.signin:after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
    filter: blur(18px);
}

body.signin:before {
    top: 80px;
    left: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(215, 166, 75, 0.14);
}

body.signin:after {
    right: -30px;
    bottom: 80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(73, 106, 196, 0.14);
}

.signinpanel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 392px;
    gap: 26px;
    align-items: stretch;
}

.brand-panel,
.login-panel form {
    position: relative;
    border: 1px solid rgba(212, 170, 92, 0.16);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

.brand-panel {
    min-height: 620px;
    padding: 34px 38px 34px 40px;
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(30, 24, 17, 0.98) 0%, rgba(15, 16, 20, 0.96) 58%, rgba(10, 12, 18, 0.96) 100%);
    overflow: hidden;
}

.brand-panel:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(214, 167, 77, 0.08), transparent 36%),
        linear-gradient(180deg, rgba(58, 78, 143, 0.06), transparent 42%);
    pointer-events: none;
}

.brand-panel:after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.brand-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.logo-box {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1a1510;
    background: linear-gradient(135deg, #f3d596 0%, #d4a24e 45%, #8d6525 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 24px rgba(130, 91, 28, 0.28);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo-cn {
    font-size: 34px;
    line-height: 1;
    letter-spacing: 3px;
    color: #f8e5ba;
    text-shadow: 0 0 22px rgba(212, 170, 92, 0.22);
}

.logo-en {
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(245, 225, 184, 0.56);
}

.brand-badge,
.form-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 1.5px;
}

.brand-badge {
    color: #e7c27a;
    background: rgba(212, 170, 92, 0.1);
    border: 1px solid rgba(212, 170, 92, 0.24);
}

.brand-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 24px;
    align-items: center;
    min-height: 560px;
}

.brand-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: rgba(239, 206, 136, 0.82);
    font-size: 13px;
    letter-spacing: 2px;
}

.brand-title {
    margin: 0;
    font-size: 50px;
    line-height: 1.12;
    font-weight: 700;
    color: #fff7e7;
}

.brand-title span {
    display: inline-block;
    color: #f1ce8c;
    text-shadow: 0 0 28px rgba(212, 170, 92, 0.18);
}

.brand-desc {
    margin: 18px 0 24px;
    max-width: 560px;
    font-size: 15px;
    line-height: 1.95;
    color: rgba(246, 234, 209, 0.76);
}

.brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.brand-tags span {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: #f2d394;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 170, 92, 0.16);
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.brand-card {
    min-height: 136px;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(212, 170, 92, 0.1);
}

.brand-card-label {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    color: rgba(239, 206, 136, 0.7);
}

.brand-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
    color: #fff8ea;
    line-height: 1.35;
}

.brand-card p {
    margin: 0;
    color: rgba(246, 234, 209, 0.66);
    line-height: 1.72;
}

.brand-points {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.brand-points li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 170, 92, 0.08);
    color: rgba(246, 234, 209, 0.84);
}

.brand-points i {
    color: #d9ad57;
}

.account-note {
    color: rgba(246, 234, 209, 0.56);
    font-size: 13px;
}

.account-note i {
    color: #d9ad57;
    margin-right: 6px;
}

.brand-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.visual-frame {
    width: min(420px, 100%);
    padding: 18px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(31, 34, 42, 0.88) 0%, rgba(16, 17, 20, 0.92) 100%);
    border: 1px solid rgba(212, 170, 92, 0.18);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.visual-label {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: 1.2px;
    color: rgba(239, 206, 136, 0.74);
}

.visual-art {
    position: relative;
    height: 460px;
    border-radius: 22px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(7, 8, 11, 0.12), rgba(7, 8, 11, 0.42)),
        url("https://coresg-normal.trae.ai/api/ide/v1/text_to_image?prompt=premium%20fantasy%20game%20marketplace%20hero%2C%20elegant%20armored%20warrior%20with%20blue%20and%20gold%20accents%2C%20cinematic%20realistic%20digital%20illustration%2C%20luxury%20dark%20background%2C%20high-end%20gaming%20brand%20visual%2C%20no%20text%2C%20no%20watermark&image_size=portrait_16_9") center center / cover no-repeat;
}

.visual-art:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 10, 14, 0.02) 0%, rgba(8, 10, 14, 0.3) 100%),
        radial-gradient(circle at 50% 100%, rgba(212, 170, 92, 0.14), transparent 40%);
}

.login-panel {
    display: flex;
    align-items: flex-start;
}

.login-panel form {
    width: 100%;
    padding: 32px 30px 28px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(20, 18, 15, 0.96) 0%, rgba(13, 14, 17, 0.96) 100%);
}

.login-panel form:before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(229, 194, 123, 0.28), rgba(229, 194, 123, 0.03));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.form-badge {
    color: #efce88;
    background: rgba(212, 170, 92, 0.08);
    border: 1px solid rgba(212, 170, 92, 0.18);
}

.form-title {
    margin: 18px 0 12px;
    font-size: 28px;
    line-height: 1.35;
    color: #fff7e7;
}

.form-title span {
    color: #f0ca82;
}

.form-subtitle {
    margin: 0 0 28px;
    color: rgba(246, 234, 209, 0.68);
    line-height: 1.8;
}

.field-group {
    position: relative;
    margin-bottom: 14px;
}

.field-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: rgba(239, 206, 136, 0.72);
    font-size: 16px;
    z-index: 2;
}

.signinpanel .form-control {
    display: block;
    width: 100%;
    height: 52px !important;
    padding: 12px 16px 12px 48px !important;
    margin: 0;
    border-radius: 14px !important;
    border: 1px solid rgba(212, 170, 92, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: #fff8ea;
    transition: all 0.2s ease;
}

.signinpanel .form-control::-webkit-input-placeholder {
    color: rgba(246, 234, 209, 0.34);
}

.signinpanel .form-control:-moz-placeholder {
    color: rgba(246, 234, 209, 0.34);
}

.signinpanel .form-control::-moz-placeholder {
    color: rgba(246, 234, 209, 0.34);
}

.signinpanel .form-control:-ms-input-placeholder {
    color: rgba(246, 234, 209, 0.34);
}

.signinpanel .form-control:focus {
    border-color: rgba(229, 194, 123, 0.46) !important;
    background: rgba(255, 255, 255, 0.05);
}

.captcha-group {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
}

.captcha-input {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.captcha-box {
    flex: 0 0 126px;
    height: 52px;
    padding: 4px;
    border-radius: 14px;
    border: 1px solid rgba(212, 170, 92, 0.14);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.imgcode {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 10px;
}

.checkbox-custom {
    position: relative;
    padding-left: 28px;
    display: inline-flex;
    align-items: center;
    min-height: 20px;
}

.checkbox-custom input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    z-index: 2;
    margin: 0;
}

.checkbox-custom label {
    cursor: pointer;
    line-height: 1.2;
    font-weight: normal;
    margin-bottom: 0;
    color: rgba(246, 234, 209, 0.8);
}

.checkbox-custom label:before {
    content: "";
    position: absolute;
    top: 1px;
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(229, 194, 123, 0.32);
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-custom input[type="checkbox"]:checked + label:after {
    position: absolute;
    display: inline-block;
    font-family: "Glyphicons Halflings";
    content: "\e013";
    top: 4px;
    left: 3px;
    font-size: 11px;
    line-height: 1;
    color: #efce88;
}

.security-tip {
    font-size: 12px;
    color: rgba(246, 234, 209, 0.5);
}

.security-tip i {
    color: #d9ad57;
    margin-right: 4px;
}

.login-btn {
    margin-top: 18px;
    height: 52px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #17120d;
    background: linear-gradient(135deg, #f5dda8 0%, #d5a452 44%, #8a6225 100%);
    box-shadow: 0 14px 28px rgba(131, 93, 35, 0.34);
}

.login-btn:hover,
.login-btn:focus,
.login-btn:active {
    color: #17120d;
    background: linear-gradient(135deg, #f8e4b7 0%, #dfb465 44%, #936b2e 100%);
}

.signin-footer {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    width: 100%;
    margin: 16px auto 0;
    padding: 0 4px;
    color: rgba(246, 234, 209, 0.42);
    font-size: 13px;
    text-align: right;
}

.form-control,
.form-control:focus,
.has-error .form-control:focus,
.has-success .form-control:focus,
.has-warning .form-control:focus,
.navbar-collapse,
.navbar-form,
.navbar-form-custom .form-control:focus,
.navbar-form-custom .form-control:hover,
.open .btn.dropdown-toggle,
.panel,
.popover,
.progress,
.progress-bar {
    box-shadow: none;
}

label.error {
    display: block;
    margin-top: 8px;
    padding-left: 4px;
    color: #ffbcbc;
    font-size: 12px;
    font-weight: normal;
}

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

body .layer-ext-moon-msg {
    background-color: rgba(0, 0, 0, 0.72);
    color: #fff;
    border: none;
}

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

@media screen and (max-width: 1180px) {
    .brand-panel {
        padding: 30px 30px 30px 32px;
    }

    .brand-main {
        display: block;
        min-height: 0;
    }

    .brand-visual {
        position: absolute;
        top: 118px;
        right: 14px;
        z-index: 0;
        width: 146px;
        justify-content: flex-end;
    }

    .visual-frame {
        width: 100%;
        padding: 8px;
        border-radius: 18px;
        opacity: 0.88;
    }

    .visual-label {
        display: none;
    }

    .visual-art {
        height: 196px;
        border-radius: 14px;
        background-position: center top;
    }

    .brand-copy {
        position: relative;
        z-index: 1;
        padding-right: 126px;
    }

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

    .brand-desc {
        max-width: none;
        margin: 14px 0 16px;
        font-size: 14px;
        line-height: 1.8;
    }

    .brand-tags {
        margin-bottom: 16px;
    }

    .brand-grid {
        grid-template-columns: 1fr;
        margin-bottom: 16px;
    }

    .brand-card {
        min-height: 0;
        padding: 16px;
    }

    .brand-card strong {
        font-size: 20px;
    }

    .brand-points {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .brand-points li {
        width: 100%;
    }
}

@media screen and (max-width: 860px) {
    body.signin {
        padding: 20px 14px 16px;
    }

    .signinpanel {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .brand-main {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .brand-panel,
    .login-panel form {
        min-height: auto;
    }

    .brand-copy {
        padding-right: 0;
    }

    .brand-visual {
        position: relative;
        top: auto;
        right: auto;
        width: auto;
        z-index: 1;
    }

    .visual-frame {
        max-width: 420px;
        padding: 14px;
        opacity: 1;
    }

    .visual-art {
        height: 260px;
    }

    .login-panel form {
        padding: 28px 22px 24px;
    }
}

@media screen and (max-width: 640px) {
    .brand-panel {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .login-panel form {
        padding: 24px 18px 20px;
        border-radius: 24px;
    }

    .brand-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .logo-cn {
        font-size: 28px;
    }

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

    .brand-grid {
        grid-template-columns: 1fr;
    }

    .brand-points {
        flex-direction: column;
    }

    .brand-points li {
        width: 100%;
    }

    .visual-art {
        height: 280px;
    }

    .form-title {
        font-size: 24px;
    }

    .captcha-group {
        flex-direction: column;
    }

    .captcha-box {
        flex-basis: auto;
        width: 100%;
    }

    .remember-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .signin-footer {
        margin-top: 12px;
        text-align: center;
    }
}
