/* 
 * 全新登录注册页面样式
 * 与网站风格完全统一
 */

/* 页面基础样式 */
.auth-page {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #16213e 100%);
    min-height: 100vh;
}

/* 主体区域 */
.auth-main {
    padding: 40px 20px 60px;
    min-height: calc(100vh - 300px);
}

.auth-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* 登录/注册盒子 */
.auth-box {
    display: flex;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 左侧欢迎区 */
.auth-welcome {
    flex: 0 0 45%;
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    padding: 60px 50px;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.welcome-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

.welcome-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.welcome-features {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 15px;
}

.feature-item i {
    font-size: 20px;
    margin-right: 12px;
    color: #ffffff;
}

/* 右侧表单区 */
.auth-form-wrapper {
    flex: 1;
    padding: 40px 45px;
}

/* Tab切换 */
.auth-tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 32px;
    border-bottom: 2px solid #e4e7ed;
}

.auth-tab {
    background: none;
    border: none;
    padding: 14px 6px;
    font-size: 16px;
    font-weight: 600;
    color: #909399;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.auth-tab:hover {
    color: #ff6600;
}

.auth-tab.active {
    color: #ff6600;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6600 0%, #ff7722 100%);
    border-radius: 2px 2px 0 0;
}

/* 注册页面头部 */
.auth-header {
    margin-bottom: 25px;
}

.auth-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.auth-header p {
    color: #666666;
    font-size: 14px;
}

.auth-header a {
    color: #ff6600;
    text-decoration: none;
}

.auth-header a:hover {
    text-decoration: underline;
}

/* 表单样式 */
.auth-form {
    display: none;
    animation: fadeIn 0.3s ease;
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333333;
    font-size: 14px;
    font-weight: 600;
}

/* 两列布局 */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 16px;
}

.form-col-half {
    flex: 1;
    margin-bottom: 0 !important;
}

.form-group label i {
    color: #ff6600;
    margin-right: 8px;
    font-size: 16px;
}

.form-group label .required {
    color: #f56c6c;
    margin-left: 4px;
    font-weight: 700;
}

/* 输入框 */
.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: 45px;
}

.form-control:hover {
    border-color: #c0c4cc;
}

.form-control:focus {
    background-color: #ffffff;
    border-color: #ff6600;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.08);
}

.form-control::placeholder {
    color: #c0c4cc;
    font-size: 15px;
}

/* 密码输入框包装 */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 55px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #c0c4cc;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
    font-size: 18px;
}

.toggle-password:hover {
    color: #ff6600;
}

.toggle-password.active i::before {
    content: "\f070"; /* fa-eye-slash */
}

/* 验证码输入框 */
.captcha-wrapper {
    display: flex;
    gap: 12px;
}

.captcha-wrapper .form-control {
    flex: 1;
}

.btn-captcha {
    flex-shrink: 0;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6600 0%, #ff7722 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.2);
    height: 45px;
}

.btn-captcha:hover {
    background: linear-gradient(135deg, #ff7722 0%, #ff8833 100%);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
    transform: translateY(-1px);
}

.btn-captcha:disabled {
    background: #dcdfe6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    color: #909399;
}

/* 帮助文本（保留样式以兼容登录页等其他页面） */
.help-block {
    margin-top: 4px;
    font-size: 12px;
    color: #dc3545;
    min-height: 0;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 16px;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    color: #606266;
    user-select: none;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 3px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #ff6600;
}

.checkbox-label a {
    color: #ff6600;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* 忘记密码链接 */
.forgot-link {
    color: #ff6600;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #ff8533;
    text-decoration: underline;
}

/* 提交按钮 */
.btn-submit {
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, #ff6600 0%, #ff7722 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.35);
    letter-spacing: 0.5px;
    height: 48px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #ff7722 0%, #ff8833 100%);
    box-shadow: 0 6px 18px rgba(255, 102, 0, 0.45);
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 102, 0, 0.35);
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    background: #dcdfe6;
    box-shadow: none;
}

.btn-loading {
    display: none;
}

/* 底部链接 */
.auth-footer {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: #666666;
}

.auth-footer a {
    color: #ff6600;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* 分割线 */
.divider {
    margin: 30px 0;
    text-align: center;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e9ecef;
}

.divider span {
    position: relative;
    background: #ffffff;
    padding: 0 20px;
    color: #999999;
    font-size: 14px;
}

/* 社交登录 */
.social-login {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex: 1;
    padding: 12px 20px;
    background: #f8f9fa;
    color: #666666;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.social-btn.wechat:hover {
    color: #07c160;
    border-color: #07c160;
}

.social-btn.qq:hover {
    color: #12b7f5;
    border-color: #12b7f5;
}

.social-btn i {
    font-size: 18px;
}


/* 响应式设计 */
@media (max-width: 992px) {
    .auth-box {
        flex-direction: column;
    }
    
    .auth-welcome {
        flex: none;
        padding: 40px 30px;
    }
    
    .welcome-content h1 {
        font-size: 28px;
    }
    
    .auth-form-wrapper {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .auth-main {
        padding: 30px 15px 40px;
    }
    
    .auth-box {
        border-radius: 12px;
    }
    
    .auth-welcome {
        padding: 30px 20px;
    }
    
    .welcome-content h1 {
        font-size: 24px;
    }
    
    .welcome-content p {
        font-size: 14px;
    }
    
    .auth-form-wrapper {
        padding: 30px 20px;
    }
    
    .auth-header h2 {
        font-size: 24px;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    /* 小屏幕上两列变一列 */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-col-half {
        margin-bottom: 16px !important;
    }
}

/* 表单验证错误状态 */
.form-group.has-error .form-control {
    border-color: #f56c6c;
    background-color: #fef0f0;
}

.form-group.has-error .form-control:focus {
    border-color: #f56c6c;
    box-shadow: 0 0 0 3px rgba(245, 108, 108, 0.1);
}

/* 成功状态 */
.form-group.has-success .form-control {
    border-color: #67c23a;
}

.form-group.has-success .form-control:focus {
    border-color: #67c23a;
    box-shadow: 0 0 0 3px rgba(103, 194, 58, 0.1);
}

/* 隐藏元素 */
.hide {
    display: none !important;
}

/* 忘记密码弹窗样式 */
.form-layer {
    padding: 20px;
}

.form-body {
    padding-bottom: 20px;
}

.form-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
    margin-top: 0;
}

.form-horizontal .control-label {
    text-align: right;
    padding-top: 7px;
}

.radio label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    color: #666666;
}

.radio input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.msg-box {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #dc3545;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group .form-control {
    flex: 1;
}

.input-group-btn {
    flex-shrink: 0;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #ff6600;
    color: #ffffff;
}

.btn-primary:hover {
    background: #ff8533;
}

.btn-md {
    padding: 10px 20px;
    font-size: 14px;
}

/* Col布局支持 */
.col-xs-12, .col-sm-3, .col-sm-8, .col-sm-offset-3 {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-sm-3 {
        width: 25%;
        float: left;
    }
    .col-sm-8 {
        width: 66.66666667%;
        float: left;
    }
    .col-sm-offset-3 {
        margin-left: 25%;
    }
    
    .form-horizontal .control-label {
        text-align: right;
        padding-top: 7px;
    }
}

@media (max-width: 767px) {
    .form-horizontal .control-label {
        text-align: left;
        padding-top: 0;
        margin-bottom: 8px;
    }
}

.col-xs-12 {
    width: 100%;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

