/* 客户注册登录样式 */

/* 认证页面 */
.auth-section {
    min-height: calc(100vh - 200px);
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.auth-card {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.auth-card.register-card {
    max-width: 650px;
}

.auth-header {
    background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
    color: #fff;
    padding: 30px;
    text-align: center;
}

.auth-header h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.auth-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

/* 主体类型选择 */
.type-selector {
    display: flex;
    padding: 20px 30px;
    gap: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.type-btn {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.type-btn i {
    font-size: 24px;
    color: #666;
}

.type-btn span {
    font-size: 14px;
    color: #333;
}

.type-btn:hover {
    border-color: #2980b9;
}

.type-btn.active {
    border-color: #2980b9;
    background: #e8f4fc;
}

.type-btn.active i,
.type-btn.active span {
    color: #2980b9;
}

/* 表单样式 */
.auth-form {
    padding: 30px;
}

.form-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 16px;
    color: #333;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h3 i {
    color: #2980b9;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 输入框带图标 */
.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-icon input {
    padding-left: 45px;
}

/* 文件上传 */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #2980b9;
    background: #f0f7fc;
}

.upload-area i {
    font-size: 36px;
    color: #999;
    margin-bottom: 10px;
    display: block;
}

.upload-area span {
    display: block;
    color: #666;
    margin-bottom: 5px;
}

.upload-area small {
    color: #999;
    font-size: 12px;
}

.upload-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 6px;
}

.upload-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 4px;
}

/* 复选框组 */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.forgot-link {
    color: #2980b9;
    font-size: 14px;
}

/* 协议 */
.agreement {
    margin-top: 20px;
}

.agreement a {
    color: #2980b9;
}

/* 按钮 */
.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

/* 表单底部 */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-footer p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.auth-footer a {
    color: #2980b9;
    font-weight: 500;
}

/* 简化页脚 */
.simple-footer {
    background: #333;
    padding: 20px 0;
}

.simple-footer p {
    margin: 0;
    color: #999;
    text-align: center;
    font-size: 14px;
}

/* 个人中心 */
.profile-section {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
    background: #f5f7fa;
}

.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* 侧边栏 */
.profile-sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    height: fit-content;
}

.user-card {
    padding: 30px;
    background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
    color: #fff;
    text-align: center;
}

.user-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar i {
    font-size: 40px;
}

.user-info h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.user-type {
    font-size: 12px;
    padding: 3px 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
}

.profile-nav {
    padding: 15px 0;
}

.profile-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.profile-nav .nav-item:hover {
    background: #f5f7fa;
    color: #2980b9;
}

.profile-nav .nav-item.active {
    background: #e8f4fc;
    color: #2980b9;
    border-left-color: #2980b9;
}

.profile-nav .nav-item i {
    width: 20px;
    text-align: center;
}

/* 主内容区 */
.profile-main {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 30px;
}

.profile-content {
    display: none;
}

.profile-content.active {
    display: block;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.content-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    background: #ffeaa7;
    color: #d68910;
}

.status-badge.verified {
    background: #d5f5e3;
    color: #27ae60;
}

.status-badge.rejected {
    background: #fadbd8;
    color: #e74c3c;
}

.profile-form .form-group {
    margin-bottom: 25px;
}

.profile-form .btn {
    margin-top: 10px;
}

/* Toast 提示 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: #333;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: #27ae60;
}

.toast.error {
    background: #e74c3c;
}

/* 响应式 */
@media (max-width: 768px) {
    .auth-card {
        margin: 0 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .type-selector {
        padding: 15px;
    }

    .type-btn {
        padding: 12px;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        order: -1;
    }

    .profile-nav {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }

    .profile-nav .nav-item {
        padding: 10px 15px;
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .profile-nav .nav-item.active {
        border-left-color: transparent;
        border-bottom-color: #2980b9;
    }
}
