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

.auth-page {
    min-height: 100vh;
    padding-top: 70px;
    background:
        radial-gradient(ellipse at top, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(77, 208, 225, 0.08) 0%, transparent 50%),
        var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 40px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 0 20px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 700;
}

.auth-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-form {
    margin-bottom: 24px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-footer a {
    color: var(--mc-green-light);
    font-weight: 600;
}

.auth-alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-alert.error {
    background: rgba(239, 83, 80, 0.1);
    border: 1px solid rgba(239, 83, 80, 0.3);
    color: var(--mc-redstone);
}

.auth-alert.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: var(--mc-green-light);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-wrap input {
    width: 16px;
    height: 16px;
    accent-color: var(--mc-green);
}

.forgot-link {
    color: var(--mc-green-light);
}

.btn-block {
    width: 100%;
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    display: flex;
    align-items: center;
}

/* ============================================
   个人资料页面
   ============================================ */
.profile-page {
    padding-top: 110px;
    padding-bottom: 60px;
}

.profile-header {
    background:
        linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(77, 208, 225, 0.1) 100%),
        var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--mc-green);
    box-shadow: var(--shadow-glow);
}

.profile-info {
    flex: 1;
    min-width: 240px;
}

.profile-username {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-email {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.profile-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--mc-green-light);
}

.profile-stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.profile-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.profile-tab {
    padding: 14px 24px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.profile-tab:hover {
    color: var(--text-primary);
}

.profile-tab.active {
    color: var(--mc-green-light);
    border-bottom-color: var(--mc-green);
}

.profile-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 16px;
}

.order-info {
    flex: 1;
    min-width: 200px;
}

.order-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.order-no {
    font-size: 13px;
    color: var(--text-muted);
    font-family: monospace;
}

.order-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--mc-gold);
}

.order-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.order-status.pending { background: rgba(255, 213, 79, 0.15); color: var(--mc-gold); }
.order-status.paid { background: rgba(76, 175, 80, 0.15); color: var(--mc-green-light); }
.order-status.cancelled { background: rgba(155, 168, 189, 0.15); color: var(--text-muted); }

@media (max-width: 768px) {
    .auth-card { padding: 32px 24px; }
    .profile-header { padding: 24px; flex-direction: column; text-align: center; }
    .profile-stats { justify-content: center; }
}
