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

body {
    margin: 0;
    color: var(--foreground);
    background: linear-gradient(180deg, #f4f8ff 0%, #eef3ff 100%);
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.layui-input {
    height: 50px !important;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    box-sizing: border-box;
}

.login-card {
    width: 960px;
    max-width: 100%;
    min-height: 520px;
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(44, 108, 255, 0.16);
}

.login-brand {
    width: 42%;
    padding: 48px 42px 28px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #4d7cff 0%, #3f6efe 100%);
    color: var(--primary-foreground);
    display: flex;
    flex-direction: column;
}

.brand-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.brand-head .layui-icon {
    font-size: 20px;
}

.brand-head h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 1px;
}

.login-brand p {
    margin: 0;
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.86);
}

.brand-foot {
    margin-top: auto;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.68);
}

.login-main {
    width: 58%;
    padding: 52px 56px 48px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.95);
}

.login-title {
    margin: 0 0 22px;
    font-size: 34px;
    font-weight: 700;
    color: #111a35;
}

.login-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: #f6f8fc;
    border-radius: 10px;
}

.tab-btn {
    border: none;
    height: 38px;
    border-radius: 8px;
    background: transparent;
    color: #7e88a7;
    font-size: 14px;
    cursor: pointer;
    transition: all .25s ease;
}

.tab-btn:hover {
    color: #3f6efe;
}

.tab-btn.active {
    background: #fff;
    color: #3f6efe;
    box-shadow: 0 8px 20px rgba(52, 105, 255, 0.12);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel .bi {
    font-size: 20px;
    color: #666;
}

.qrcode-box {
    width: 220px;
    height: 220px;
    margin: 12px auto;
    border-radius: 12px;
    border: 1px solid #e8eefc;
    padding: 12px;
    box-sizing: border-box;
    background: #fff;
    position: relative;
}

.qrcode-box img {
    width: 100%;
    height: 100%;
    display: block;
}

.qrcode-mask {
    position: absolute;
    border-radius: 8px;
    background: rgba(17, 26, 53, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: #fff;
}

.qrcode-box.expired .qrcode-mask {
    display: flex;
}

.qrcode-mask p {
    margin: 0;
    font-size: 14px;
}

.qrcode-mask .layui-btn {
    border-radius: 8px;
    background: #4d7cff;
}

.qrcode-tip,
.qrcode-expire {
    margin: 0;
    text-align: center;
    font-size: 14px;
    color: #66718f;
}

.qrcode-expire {
    margin-top: 8px;
}

#qrcodeCountdown {
    color: #3f6efe;
    font-weight: 600;
}

.login-form .layui-form-item {
    margin-bottom: 16px;
}

.captcha-row,
.sms-row {
    display: flex;
    gap: 12px;
}

.captcha-input,
.sms-input {
    flex: 1;
}

.captcha-row .layui-input-inline,
.sms-row .layui-input-inline {
    margin-right: 0;
}

.captcha-image-wrap {
    width: 150px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dbe6ff;
    background: #fff;
    flex-shrink: 0;
}

.captcha-image {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.sms-btn {
    height: 50px;
    width: 122px;
    border-radius: 10px;
    border-color: #adc5ff;
    color: #3f6efe;
    background: #edf3ff;
    flex-shrink: 0;
    transition: all .25s ease;
}

.sms-btn:hover {
    color: #2f5de2;
    border-color: #8fb0ff;
    background: #e1ebff;
}

.submit-btn {
    margin-top: 8px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(90deg, #4d7cff 0%, #3f6efe 100%);
    transition: transform .25s ease, box-shadow .25s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(63, 110, 254, 0.3);
}

.bind-tip {
    display: none;
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff8e1;
    /* 黄色背景 */
    color: #f57f17;
    /* 黄色文字 */
    font-size: 13px;
    align-items: center;
    gap: 8px;
}

.bind-tip .bi {
    color: #f57f17;
    font-weight: 600;
}

.bind-tip.active {
    display: flex;
}

.login-form .layui-input-prefix {
    display: flex;
    align-items: center;
}

@media screen and (max-width: 992px) {
    .login-card {
        width: 100%;
    }

    .login-brand,
    .login-main {
        width: 50%;
    }

    .login-main {
        padding: 40px 28px;
    }

    .brand-head h1,
    .login-title {
        font-size: 30px;
    }
}

@media screen and (max-width: 768px) {
    .login-card {
        flex-direction: column;
    }

    .login-brand,
    .login-main {
        width: 100%;
    }

    .login-brand {
        min-height: 220px;
    }

    .captcha-image-wrap {
        width: 120px;
    }

    .sms-btn {
        width: 108px;
    }
}