/**
 * 登录 / 注册 / 忘记密码 — 分栏卡片 + 蓝色渐变背景（与参考图一致风格）
 * 避免依赖 CSS Variables，便于旧版浏览器
 */

.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    position: relative;
    overflow-x: hidden;
    color: #334155;
}

.auth-bg {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: #3d5ae8;
    background: linear-gradient(145deg, #5b7cfa 0%, #4568fc 42%, #2f4ed4 100%);
}

.auth-bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.auth-bg-circle.c1 {
    width: 440px;
    height: 440px;
    top: -140px;
    right: -100px;
}

.auth-bg-circle.c2 {
    width: 300px;
    height: 300px;
    bottom: 8%;
    left: -80px;
    background: rgba(255, 255, 255, 0.06);
}

.auth-bg-circle.c3 {
    width: 180px;
    height: 180px;
    top: 40%;
    left: 15%;
    background: rgba(255, 255, 255, 0.05);
}

.auth-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px 100px;
    box-sizing: border-box;
}

.auth-card {
    display: flex;
    width: 920px;
    max-width: 100%;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* 左侧装饰区 */
.auth-visual {
    width: 44%;
    min-height: 540px;
    box-sizing: border-box;
    padding: 36px 28px;
    background: #e8eeff;
    background: linear-gradient(165deg, #dbe4ff 0%, #eef2ff 40%, #ffffff 100%);
    border-right: 1px solid #e2e8f0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auth-visual-brand {
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 13px;
    font-weight: 700;
    color: #4568fc;
    letter-spacing: 0.04em;
}

.auth-visual-illus {
    width: 100%;
    max-width: 280px;
    margin: 20px auto;
}

.auth-visual-illus svg {
    width: 100%;
    height: auto;
    display: block;
}

.auth-visual-foot {
    margin-top: 24px;
    font-size: 12px;
    color: #64748b;
    text-align: center;
    line-height: 1.6;
}

.auth-visual-icons {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.auth-visual-icons span {
    margin: 0 6px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(69, 104, 252, 0.12);
    border: 1px solid rgba(69, 104, 252, 0.2);
    display: inline-block;
    vertical-align: middle;
    line-height: 40px;
    text-align: center;
    font-size: 18px;
}

/* 右侧表单 */
.auth-form-panel {
    flex: 1;
    min-width: 0;
    padding: 36px 44px 40px;
    position: relative;
    box-sizing: border-box;
}

.auth-form-head {
    position: relative;
    text-align: center;
    margin-bottom: 28px;
}

.auth-qr-btn {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    padding: 0;
    line-height: 38px;
    text-align: center;
}

.auth-qr-btn:hover {
    border-color: #4568fc;
    background: #eef2ff;
}

.auth-qr-btn svg {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    fill: #4568fc;
}

.auth-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
    padding-right: 48px;
    padding-left: 48px;
    box-sizing: border-box;
}

.auth-form-sub {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

.auth-input-group {
    position: relative;
    margin-bottom: 18px;
}

.auth-input-group svg {
    position: absolute;
    left: 14px;
    top: 50%;
    margin-top: -9px;
    width: 18px;
    height: 18px;
    fill: #94a3b8;
    pointer-events: none;
}

.auth-input-group input {
    width: 100%;
    padding: 13px 14px 13px 46px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: #334155;
    background: #fafbfc;
    outline: none;
    box-sizing: border-box;
}

.auth-input-group input:focus {
    border-color: #4568fc;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(69, 104, 252, 0.15);
}

.auth-input-group:focus-within svg {
    fill: #4568fc;
}

.auth-input-group input::placeholder {
    color: #cbd5e1;
}

/* 验证码行 */
.auth-captcha-row {
    display: flex;
    align-items: stretch;
    margin-bottom: 18px;
}

.auth-captcha-row .auth-input-group {
    flex: 1;
    margin-bottom: 0;
    min-width: 0;
    margin-right: 10px;
}

.auth-captcha-code {
    width: 108px;
    flex-shrink: 0;
    margin-right: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 6px;
    color: #475569;
    font-family: 'Consolas', 'Courier New', monospace;
    user-select: none;
    cursor: default;
}

.auth-captcha-refresh {
    width: 40px;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    color: #64748b;
    padding: 0;
}

.auth-captcha-refresh:hover {
    border-color: #4568fc;
    color: #4568fc;
}

.auth-row-check {
    margin: 6px 0 20px;
    font-size: 14px;
    color: #64748b;
}

.auth-row-check input {
    vertical-align: middle;
    margin-right: 6px;
}

.auth-submit {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #4568fc;
    cursor: pointer;
    letter-spacing: 2px;
    box-shadow: 0 8px 24px rgba(69, 104, 252, 0.35);
}

.auth-submit:hover {
    background: #3d5cef;
}

.auth-submit:active {
    box-shadow: 0 4px 14px rgba(69, 104, 252, 0.3);
}

.auth-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 22px;
    font-size: 14px;
}

.auth-links a {
    color: #64748b;
    text-decoration: none;
}

.auth-links a:hover {
    color: #4568fc;
}

.auth-links-single {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
}

.auth-links-single a {
    color: #64748b;
    text-decoration: none;
}

.auth-links-single a:hover {
    color: #4568fc;
}

.auth-links-extra {
    text-align: center;
    margin-top: 14px;
    font-size: 14px;
}

.auth-links-extra a {
    color: #64748b;
    text-decoration: none;
}

.auth-links-extra a:hover {
    color: #4568fc;
}

.auth-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    max-width: 640px;
    padding: 0 16px;
}

.auth-toast {
    position: fixed;
    top: 28px;
    left: 50%;
    margin-left: -160px;
    width: 320px;
    max-width: 90%;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    opacity: 0;
    z-index: 9999;
    pointer-events: none;
    box-sizing: border-box;
}

.auth-toast.show {
    opacity: 1;
}

.auth-toast.success {
    background: #22c55e;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}

.auth-toast.error {
    background: #ef4444;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}

@media (max-width: 860px) {
    .auth-card {
        flex-direction: column;
        max-width: 440px;
    }

    .auth-visual {
        width: 100%;
        min-height: 200px;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .auth-visual-illus {
        max-width: 200px;
    }

    .auth-form-panel {
        padding: 28px 24px 32px;
    }

    .auth-form-title {
        padding-left: 0;
        padding-right: 48px;
    }
}
