/* ==================== 认证页面样式 ==================== */

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 50%, #ecfeff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    width: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* 左侧介绍区域 */
.auth-left {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
    color: white;
    padding: 3rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.auth-left-content {
    position: relative;
    z-index: 1;
}

.auth-left h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

.auth-left > .auth-left-content > p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-features li {
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.auth-features i {
    color: #4ade80;
    font-size: 1.2rem;
}

/* 右侧表单区域 */
.auth-right {
    padding: 3rem 2.5rem;
    overflow-y: auto;
    max-height: 90vh;
}

.auth-form h2 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-subtitle {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    color: #334155;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group label i {
    margin-right: 0.4rem;
    color: #0ea5e9;
}

.required {
    color: #ef4444;
    margin-left: 0.2rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: #f8fafc;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0ea5e9;
    background: white;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #475569;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0ea5e9;
}

.forgot-link {
    color: #0ea5e9;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(14, 165, 233, 0.5);
}

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

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.form-footer a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.3rem;
}

.form-footer a:hover {
    text-decoration: underline;
}


/* 个人中心页面样式 */
.profile-page {
    min-height: calc(100vh - 70px);
    background: #f8fafc;
    padding: 2rem 0;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.profile-sidebar {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.profile-avatar {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.3rem;
}

.profile-role {
    font-size: 0.85rem;
    color: #64748b;
}

.profile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-menu li {
    margin-bottom: 0.3rem;
}

.profile-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.profile-menu a:hover {
    background: #f1f5f9;
    color: #0ea5e9;
}

.profile-menu a.active {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
}

.profile-menu a i {
    width: 20px;
    text-align: center;
}

.profile-main {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
}

.section-title {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-weight: 700;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #bae6fd;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2rem;
    color: #0284c7;
    margin-bottom: 0.75rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #475569;
}

/* 进度条 */
.progress-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.progress-title {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.progress-item {
    margin-bottom: 1.25rem;
}

.progress-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 5px;
    transition: width 0.6s ease;
}

/* 学习记录 */
.records-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.record-item {
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid #0ea5e9;
    transition: all 0.2s;
}

.record-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.record-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0ea5e9;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.record-content {
    flex: 1;
}

.record-title {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.record-meta {
    font-size: 0.85rem;
    color: #64748b;
}

.record-score {
    font-weight: 700;
    color: #0ea5e9;
    font-size: 1.1rem;
}

/* 证书列表 */
.certificate-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.certificate-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #f59e0b;
    position: relative;
    overflow: hidden;
}

.certificate-card::before {
    content: '🏆';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 5rem;
    opacity: 0.2;
}

.cert-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.cert-date {
    color: #b45309;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.cert-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: #78350f;
}

.cert-label {
    font-size: 0.85rem;
    color: #92400e;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-left {
        padding: 2rem 1.5rem;
    }

    .auth-left h2 {
        font-size: 1.6rem;
    }

    .auth-right {
        padding: 2rem 1.5rem;
    }

    .profile-container {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
    }
}
