/* 认证相关样式 */

/* 用户信息区域 */
.user-info {
    background: #f7fafc;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.user-name {
    font-weight: 600;
    color: #4a5568;
}

.user-email {
    font-size: 0.9rem;
    color: #718096;
}

.btn-logout {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-logout:hover {
    box-shadow: 0 10px 20px rgba(245, 101, 101, 0.3);
}

/* 认证弹窗 */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-overlay.show {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.auth-overlay.show .auth-modal {
    transform: translateY(0);
}

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

.auth-header h2 {
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.auth-header p {
    color: #718096;
    font-size: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.auth-actions .btn {
    flex: 1;
    padding: 14px;
}

.auth-error {
    background: #fed7d7;
    border: 1px solid #fc8181;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    color: #c53030;
    font-size: 0.9rem;
    display: none;
}

.auth-error.show {
    display: block;
}

/* Token 刷新状态 */
.token-status {
    background: #f7fafc;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.token-status.valid {
    border-left: 4px solid #48bb78;
}

.token-status.expiring {
    border-left: 4px solid #ed8936;
}

.token-status.expired {
    border-left: 4px solid #f56565;
}

.token-time {
    color: #718096;
}

.token-refresh-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.token-refresh-btn:hover {
    box-shadow: 0 5px 15px rgba(237, 137, 54, 0.3);
}