/* 全局样式 - 清新唯美风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", "Microsoft Yahei", "PingFang SC", sans-serif;
}

body {
    background: linear-gradient(120deg, #f0f8ff 0%, #e8f4f8 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 420px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(64, 158, 255, 0.1);
    padding: 40px 30px;
    border: 1px solid rgba(64, 158, 255, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #303133;
    font-size: 24px;
    font-weight: 600;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #409eff, #66b1ff);
    margin: 10px auto 0;
    border-radius: 3px;
}

/* 选项卡样式 */
.tab-nav {
    display: flex;
    border-bottom: 1px solid #e8eaec;
    margin-bottom: 25px;
}

.tab-nav button {
    flex: 1;
    padding: 12px 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #606266;
    position: relative;
    transition: color 0.3s ease;
}

.tab-nav button:hover {
    color: #409eff;
}

.tab-nav button.active {
    color: #409eff;
    font-weight: 500;
}

.tab-nav button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, #409eff, #66b1ff);
    border-radius: 2px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* 二级选项卡样式 */
.sub-tab-nav {
    display: flex;
    justify-content: center;
    margin: 0 0 20px 0;
}

.sub-tab-nav button {
    padding: 8px 20px;
    border: 1px solid #e8eaec;
    background: #f9fafc;
    cursor: pointer;
    border-radius: 8px;
    margin-right: 12px;
    font-size: 14px;
    color: #606266;
    transition: all 0.3s ease;
}

.sub-tab-nav button:last-child {
    margin-right: 0;
}

.sub-tab-nav button:hover {
    border-color: #c6e2ff;
    background: #f0f9ff;
}

.sub-tab-nav button.active {
    background: linear-gradient(90deg, #409eff, #66b1ff);
    color: #ffffff;
    border-color: #409eff;
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.2);
}

.sub-tab-content {
    display: none;
}

.sub-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* 表单样式 */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #606266;
    font-size: 14px;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e8eaec;
    border-radius: 10px;
    font-size: 14px;
    color: #303133;
    transition: all 0.3s ease;
    background: #f9fafc;
}

input:focus {
    outline: none;
    border-color: #409eff;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(64, 158, 255, 0.1);
}

input::placeholder {
    color: #909399;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #409eff, #66b1ff);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.2);
}

.btn:hover {
    background: linear-gradient(90deg, #3390e8, #55a7ff);
    box-shadow: 0 6px 16px rgba(64, 158, 255, 0.3);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(90deg, #909399, #a8abb2);
    box-shadow: 0 4px 12px rgba(144, 147, 153, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(90deg, #82868c, #9da1a8);
    box-shadow: 0 6px 16px rgba(144, 147, 153, 0.3);
}

/* 验证码输入区域通用样式 */
.code-input {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px; /* 调整与发送模式的间距 */
}

.code-input .form-group {
    flex: 1;
    margin-bottom: 0;
}

.send-code-btn {
    width: 120px;
    height: 44px;
    line-height: 44px;
    padding: 0 15px;
    flex-shrink: 0;
    margin-bottom: 0;
}

/* 发送方式选项样式 */
.send-mode-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #666;
}

.send-mode-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.send-mode-options label span {
    margin-right: 5px;
}

.send-mode-options input {
    width: auto;
    margin: 0;
    accent-color: #409eff;
}

/* 微信扫码样式 */
.wechat-qrcode {
    text-align: center;
    padding: 20px 0;
}

.wechat-qrcode img {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border: 1px solid #e8eaec;
    border-radius: 10px;
    padding: 10px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.wechat-qrcode p {
    margin-top: 15px;
    color: #606266;
    font-size: 14px;
}

/* 提示信息 */
.msg {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

.msg-success {
    background: #f0f9ff;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.msg-error {
    background: #fff2f0;
    color: #f5222d;
    border: 1px solid #ffccc7;
}

/* 清新唯美风格短信弹窗样式 */
.sms-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    border: 1px solid #e8f4f8;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(64, 158, 255, 0.1);
    z-index: 9999;
    display: none;
    max-width: 320px;
    overflow: hidden;
}

.sms-popup-header {
    padding: 12px 16px;
    background: linear-gradient(90deg, #e8f4f8, #f0f8ff);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e8eaec;
}

.sms-popup-title {
    color: #409eff;
    font-size: 14px;
    font-weight: 600;
}

.sms-popup-close {
    color: #909399;
    font-size: 20px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sms-popup-close:hover {
    background: #f0f9ff;
    color: #409eff;
    transform: rotate(90deg);
}

.sms-popup-body {
    padding: 16px;
    color: #303133;
    font-size: 15px;
    line-height: 1.6;
    background: #f9fafc;
}

.sms-popup-footer {
    padding: 8px 16px;
    background: #f0f8ff;
    border-top: 1px solid #e8eaec;
}

.sms-popup-tip {
    color: #606266;
    font-size: 12px;
    opacity: 0.8;
}

/* 重构后的底部认证链接样式 */
.auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f8ff;
    font-size: 14px;
}

.auth-link {
    color: #409eff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #409eff, #66b1ff);
    transition: width 0.3s ease;
}

.auth-link:hover {
    color: #3390e8;
    background-color: #f0f9ff;
}

.auth-link:hover::after {
    width: 80%;
}

.auth-divider {
    color: #e8eaec;
    margin: 0 8px;
}

/* 通用提示弹窗样式（右上角） */
.toast-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: none;
}

.toast-content {
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(64, 158, 255, 0.15);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    min-width: 200px;
    max-width: 320px;
}

.toast-success {
    background: linear-gradient(90deg, #52c41a, #73d13d);
}

.toast-error {
    background: linear-gradient(90deg, #f5222d, #ff4d4f);
}

.toast-info {
    background: linear-gradient(90deg, #409eff, #66b1ff);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式适配 */
@media (max-width: 450px) {
    .container {
        width: 100%;
        padding: 30px 20px;
    }
    
    .sms-popup, .toast-popup {
        max-width: 90%;
        right: 5%;
        left: 5%;
    }
    
    .send-mode-options {
        gap: 15px;
        font-size: 12px;
    }
    
    .auth-links {
        flex-wrap: wrap;
    }
    
    .auth-divider {
        margin: 8px 8px 0;
    }
}
        .code-input {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px; /* 调整与发送模式选项的间距 */
        }
        
        .code-input .form-group {
            flex: 1;
            margin-bottom: 0;
        }
        
        .send-code-btn {
            height: 44px;
            line-height: 44px;
            padding: 0 15px;
            flex-shrink: 0;
            margin-bottom: 0;
            width: 120px; /* 固定按钮宽度，保证布局统一 */
        }
        
        /* 发送方式选项 - 优化布局 */
        .send-mode-options {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            margin-top: 8px;
            margin-bottom: 24px;
            font-size: 13px;
            color: #666;
        }