.login-container,
.register-container,
.change-password-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 {
    color: #10b981;
    margin-bottom: 10px;
    font-size: 2em;
}

.page-header p {
    color: #94a3b8;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #94a3b8;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
}

.message.error {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.message.success {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.login-container>div,
.register-container>div,
.change-password-container>div:last-child {
    text-align: center;
    margin-top: 20px;
    color: #94a3b8;
}

.login-container>div a,
.register-container>div a,
.back-link {
    color: #3b82f6;
    text-decoration: none;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
}

#passwordChangeMessage {
    display: none;
}

/* 编辑资料页面样式 */
.edit-profile-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 16px;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

#profileUpdateMessage {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    display: none;
}

/* 学生个人资料页面样式 */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: white;
}

.profile-header h1 {
    color: #10b981;
    margin: 10px 0;
}

.profile-header p {
    color: #94a3b8;
    margin: 5px 0;
}

.profile-info {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.profile-info h2 {
    color: #10b981;
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item label {
    display: block;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 5px;
}

.info-item p {
    color: #e2e8f0;
    margin: 0;
}

.learning-progress {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.learning-progress h2 {
    color: #10b981;
    margin-bottom: 20px;
}

.progress-item {
    margin-bottom: 15px;
}

.progress-item>div:first-child {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.progress-item>div:first-child span:first-child {
    color: #e2e8f0;
}

.progress-item>div:first-child span:last-child {
    color: #10b981;
}

.progress-item>div:last-child {
    height: 10px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 5px;
    overflow: hidden;
}

.progress-item>div:last-child>div {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
}

.progress-item:nth-child(2)>div:last-child>div {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s ease;
}

.action-btn:nth-child(1) {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.action-btn:nth-child(2) {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.action-btn:nth-child(3) {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.action-btn:hover {
    opacity: 0.8;
}