/**
 * 登录 / 忘记密码 公共样式
 * @author hcc
 * @date 2026-08-11
 */
body.auth-page {
    margin: 0;
    min-height: 100vh;
    color: #333;
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background-color: #cfe4ff;
    background-image: url("../img/auth-bg.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.auth-header {
    display: none;
}

.auth-brand {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.auth-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

.auth-card {
    width: 1080px;
    max-width: 100%;
    min-height: 580px;
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(47, 84, 235, .16);
}

.auth-left {
    width: 48%;
    background: linear-gradient(160deg, #2f6bff 0%, #1e88ff 55%, #1565c0 100%);
    color: #fff;
    position: relative;
    padding: 48px 36px 24px;
    display: flex;
    flex-direction: column;
}

.auth-left-text h2 {
    margin: 0 0 10px;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 1px;
}

.auth-left-text p {
    margin: 0;
    font-size: 14px;
    opacity: .9;
    line-height: 1.6;
}

.auth-left-art {
    margin-top: auto;
    text-align: center;
}

.auth-left-art svg {
    width: 88%;
    max-width: 340px;
    height: auto;
}

.auth-right {
    width: 52%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
}

.auth-form-wrap {
    width: 100%;
    max-width: 380px;
}

.auth-title {
    margin: 0 0 8px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1f1f1f;
}

.auth-subtitle {
    margin: 0 0 28px;
    text-align: center;
    font-size: 14px;
    color: #8a8a8a;
}

.auth-field {
    margin-bottom: 16px;
    position: relative;
}

.auth-field .form-control {
    height: 44px;
    border-radius: 22px;
    border: 1px solid #e6e8ef;
    box-shadow: none;
    padding: 0 18px;
    font-size: 14px;
    background: #fff;
}

.auth-field .form-control:focus {
    border-color: #2f6bff;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
}

.auth-captcha {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-captcha .form-control {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

/* 登录页图形验证码：输入框拉伸，验证码图贴右与上方输入框对齐 */
.auth-captcha .form-control[name="captcha"] {
    flex: 1 1 auto;
    max-width: none;
}

.auth-captcha .captcha-img {
    flex: 0 0 auto;
    height: 44px;
    padding: 0;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border-radius: 22px;
}

.auth-captcha .captcha-img img {
    height: 44px;
    width: 120px;
    object-fit: cover;
    border-radius: 22px;
    display: block;
}

.auth-captcha .btn-captcha {
    flex: 0 0 120px;
    height: 44px;
    border: none;
    border-radius: 22px;
    background: #eef1f6;
    color: #555;
    font-size: 13px;
    padding: 0 12px;
}

.auth-captcha .btn-captcha:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.auth-password .toggle-password {
    position: absolute;
    right: 16px;
    top: 14px;
    color: #aaa;
    cursor: pointer;
    font-size: 16px;
}

.auth-password .form-control {
    padding-right: 42px;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 20px;
    font-size: 13px;
    color: #666;
}

.auth-options a {
    color: #2f6bff;
}

.auth-options label {
    font-weight: normal;
    margin: 0;
}

.btn-auth {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 22px;
    background: #2f6bff;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.btn-auth:hover,
.btn-auth:focus {
    background: #1f5aef;
    color: #fff;
}

.auth-footer-link {
    margin: 18px 0 0;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.auth-footer-link a {
    color: #2f6bff;
}

.auth-copy {
    text-align: center;
    color: #b0b4bf;
    font-size: 12px;
    padding-bottom: 20px;
}

@media (max-width: 860px) {
    .auth-card {
        flex-direction: column;
        min-height: auto;
    }

    .auth-left,
    .auth-right {
        width: 100%;
    }

    .auth-left {
        min-height: 220px;
        padding: 28px 24px 12px;
    }

    .auth-left-text h2 {
        font-size: 28px;
    }

    .auth-left-art svg {
        width: 60%;
    }

    .auth-right {
        padding: 28px 24px 36px;
    }
}
