/* 全局样式 - 清新唯美风格 */
* {
    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;
}

/* 表单样式 */
.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-section {
    margin-bottom: 24px;
}

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

.code-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

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

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

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

/* 发送方式选项样式 */
.send-mode-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    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;
}

/* 已有账号链接样式 - 清新唯美 */
.login-link-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f0f4f8;
}

.wechat-login-link {
    border-top: none;
    padding-top: 0;
    margin-top: 20px;
}

.login-link-text {
    color: #606266;
    font-size: 14px;
}

.login-link {
    color: #409eff;
    font-size: 14px;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

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

.login-link:hover {
    color: #3390e8;
}

.login-link:hover::after {
    width: 100%;
}

/* 微信扫码样式 */
.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;
}

/* 通用自定义弹窗样式 - 清新唯美 */
.custom-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: none;
    animation: slideIn 0.3s ease;
}

.custom-popup-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(64, 158, 255, 0.15);
    padding: 16px 20px;
    position: relative;
    min-width: 280px;
    border: 1px solid #f0f8ff;
}

/* 成功弹窗样式 */
.custom-popup.success .custom-popup-content {
    border-left: 4px solid #52c41a;
    background: linear-gradient(90deg, #f0f9ff 0%, #ffffff 100%);
}

/* 错误弹窗样式 */
.custom-popup.error .custom-popup-content {
    border-left: 4px solid #f5222d;
    background: linear-gradient(90deg, #fff2f0 0%, #ffffff 100%);
}

.custom-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    color: #909399;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

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

.custom-popup-message {
    font-size: 14px;
    line-height: 1.6;
    padding-right: 20px;
}

.custom-popup.success .custom-popup-message {
    color: #52c41a;
}

.custom-popup.error .custom-popup-message {
    color: #f5222d;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式适配 */
@media (max-width: 450px) {
    .container {
        width: 100%;
        padding: 30px 20px;
    }
    
    .custom-popup {
        max-width: 90%;
        right: 5%;
        left: 5%;
    }
    
    .custom-popup-content {
        min-width: auto;
        width: 100%;
    }
    
    .send-mode-options {
        gap: 15px;
        font-size: 12px;
    }
    
    .send-code-btn {
        width: 100px;
        height: 44px;
        font-size: 13px;
    }
}