/* ========== 登录注册页面样式 ========== */

/* 页面主体 */
.auth-page {
    min-height: 100vh;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    width: 100%;
    max-width: 1100px;
}

/* ========== 左侧区域 ========== */
.auth-left {
    background: linear-gradient(135deg, #53a8ff 0%, #409EFF 100%);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-direction: column;
}

.auth-left-content {
    color: white;
    max-width: 450px;
}

.auth-logo {
    margin-top: -30px;
    margin-bottom: 50px;
}

.auth-logo a{
    display: flex;
    align-items: center;
    flex-direction: column;
}

.auth-logo img {
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
}

.auth-logo h1 {
    font-size: 28px;
    font-weight: 600;
    color: white;
}

.auth-intro {
    margin-bottom: 40px;
}

.auth-intro i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.auth-intro h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 600;
}

.auth-intro p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.8;
}

.auth-features {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.feature-item i {
    font-size: 28px;
    margin-bottom: 10px;
}

.feature-item span {
    font-size: 14px;
    font-weight: 500;
}

/* ========== 右侧区域 ========== */
.auth-right {
    padding: 50px;
    background: white;
}

.auth-box {
    max-width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.auth-header h2 i {
    margin-right: 10px;
    color: #53a8ff;
}

.auth-header p {
    font-size: 14px;
    color: #999;
}

/* ========== 登录方式切换 ========== */
.login-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e8e8e8;
    background: white;
    color: #666;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    border-color: #53a8ff;
    color: #53a8ff;
}

.tab-btn.active {
    background: #53a8ff;
    border-color: #53a8ff;
    color: white;
}

/* ========== 表单样式 ========== */
.auth-form {
    display: flex;
    flex-direction: column;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.form-group label .required {
    color: #FF5722;
    margin-left: 2px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #fafafa;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    padding: 0 12px;
    transition: all 0.3s;
    position: relative;
}

.input-wrapper:focus-within {
    border-color: #53a8ff;
    background: white;
}

.input-wrapper i {
    color: #999;
    font-size: 16px;
    flex-shrink: 0;
}

.input-wrapper input {
    flex: 1;
    padding: 12px 10px;
    font-size: 14px;
    color: #333;
    background: transparent;
}

.input-wrapper input::placeholder {
    color: #ccc;
}

.input-wrapper .code-btn,
.input-wrapper .toggle-pwd {
    flex-shrink: 0;
    padding: 8px 16px;
    border: none;
    background: #53a8ff;
    color: white;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.input-wrapper .code-btn:hover,
.input-wrapper .toggle-pwd:hover {
    background: #409EFF;
}

.input-wrapper .code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.input-wrapper .toggle-pwd {
    background: transparent;
    color: #999;
    padding: 8px 12px;
}

.input-wrapper .toggle-pwd:hover {
    background: rgba(83, 168, 255, 0.1);
}
.input-wrapper span{
    color: #e6162d;
}

/* ========== 表单选项 ========== */
.form-options {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    appearance:auto;
}

.forgot-link,
.agreement-link {
    color: #53a8ff;
    font-size: 14px;
}

.forgot-link:hover,
.agreement-link:hover {
    text-decoration: underline;
}
.login-tip {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 14px;
    color: #ff9c00;
}
.login-tip i{
    margin-right: 5px;
}

/* ========== 用户协议 ========== */
.form-agreement {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: #666;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

/* ========== 提交按钮 ========== */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: #53a8ff;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #409EFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(83, 168, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ========== 底部 ========== */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
    font-size: 14px;
    color: #666;
}

.auth-footer a {
    color: #53a8ff;
    font-weight: 500;
}

/* ========== 第三方登录 ========== */
.social-login {
    margin-top: 10px;
}

.divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e8e8e8;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 13px;
    position: relative;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-item {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    transition: all 0.3s;
}

.social-item.weixin {
    background: #07c160;
}

.social-item.qq {
    background: #12b7f5;
}

.social-item.weibo {
    background: #e6162d;
}
.social-item.phone {
    background: #e69d16;
}

.social-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ========== 温馨提示 ========== */
.auth-tips {
    margin-top: 30px;
    padding: 20px;
    background: #f0f7ff;
    border-radius: 8px;
    border-left: 4px solid #53a8ff;
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #409EFF;
    font-weight: 600;
    font-size: 14px;
}

.tips-header i {
    font-size: 16px;
}

.tips-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tips-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.tips-list li:last-child {
    margin-bottom: 0;
}

.tips-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #53a8ff;
    font-weight: bold;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .auth-page {
        padding: 15px;
    }

    .auth-right {
        padding: 30px 20px;
    }

    .auth-header h2 {
        font-size: 24px;
    }

    .tab-btn {
        padding: 10px;
        font-size: 13px;
    }

    .tab-btn i {
        display: none;
    }

    .auth-features {
        gap: 10px;
    }

    .feature-item {
        padding: 15px;
    }

    .feature-item i {
        font-size: 24px;
    }

    .feature-item span {
        font-size: 12px;
    }

    .social-icons {
        gap: 15px;
    }

    .social-item {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .auth-right {
        padding: 25px 15px;
    }

    .auth-header h2 {
        font-size: 22px;
    }

    .submit-btn {
        padding: 12px;
        font-size: 15px;
    }
}
