/* 全局样式重置 */
/* 全局文字颜色标准化 */
.user-details h2,
.user-details .detail-item .label,
.user-details .detail-item span {
    color: white; /* 确保用户信息文字颜色与study.html一致 */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

a {
  background-color: transparent;
}
a:active,
a:hover {
  outline: 0;
}
a,a:visited {
   text-decoration:none;
}

/* 登录包装器 */
.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* 登录容器样式 */
.login-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    display: flex;
    min-height: 650px;
    border: 1px solid #e9ecef;
}

.login-header {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex: 0 0 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%23ffffff" fill-opacity="0.05" fill-rule="evenodd"/%3E%3C/svg%3E');
    opacity: 0.5;
}

.system-info {
    margin-top: 20px;
    padding: 0 20px;
}

.system-info p {
    margin-bottom: 8px;
    font-size: 16px;
    opacity: 0.95;
}

.login-header h1 {
    color: white;
    font-size: 36px;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.login-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
}

.login-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.6;
}

.login-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-methods {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

.method-card {
    width: 100%;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.method-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.method-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.method-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.method-card p {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 14px;
}

.method-btn {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.method-btn:hover {
    background: #5a67d8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}
/* 摄像头容器 */
.camera-container {
    background: #f8f9fa;
    border-radius: 8px;
    margin: 24px 0;
    overflow: hidden;
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: 1px solid #e9ecef;
}

#video {
    width: 100%;
    max-width: 450px;
    height: 100%;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    object-fit: cover;
}

/* 验证步骤 */
.verification-steps {
    display: flex;
    margin: 20px 0;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step {
    color: #6c757d;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.step.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
    background: #f0f4ff;
}

/* 按钮组 */
.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.primary-btn {
    background: #667eea;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.primary-btn:hover {
    background: #5a67d8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.secondary-btn {
    background: #f8f9fa;
    color: #6c757d;
    padding: 12px 24px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.secondary-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    color: #4a5568;
}

/* 登录页脚 */
.login-footer {
    text-align: center;
    padding: 24px 20px;
    color: #6c757d;
    font-size: 14px;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.login-footer p {
    color: #6c757d;
    font-size: 14px;
}

/* 登录内容容器 */
.login-content-container {
    width: 100%;
    max-width: 500px;
}

/* 人脸识别验证视图 */
.face-verification-view {
    width: 100%;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.face-verification-view h3 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 600;
}

/* 响应式设计 - 桌面优先 */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
        max-width: 600px;
        margin: 40px auto;
    }
    
    .login-header {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .login-content {
        padding: 30px;
    }
    
    .method-card {
        padding: 20px;
    }
    
    .method-btn {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .modal-content {
        padding: 24px;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .login-header, .login-content {
        padding: 20px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}